From: Vladimir 'phcoder' Serbinenko Date: Wed, 9 Oct 2013 05:16:20 +0000 (+0200) Subject: * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition): X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=37149a2f207944a69fc2c5f531da3e94729b30d4;p=grub2.git * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition): Removed. * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition): Made static. --- diff --git a/ChangeLog b/ChangeLog index dc3af9894..22eb08fef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-10-09 Vladimir Serbinenko + + * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition): + Removed. + * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition): + Made static. + 2013-10-09 Vladimir Serbinenko * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove diff --git a/grub-core/osdep/linux/hostdisk.c b/grub-core/osdep/linux/hostdisk.c index fecc649e5..1df3e1521 100644 --- a/grub-core/osdep/linux/hostdisk.c +++ b/grub-core/osdep/linux/hostdisk.c @@ -148,7 +148,7 @@ have_devfs (void) return dev_devfsd_exists; } -int +static int grub_hostdisk_linux_find_partition (char *dev, grub_disk_addr_t sector) { size_t len = strlen (dev); diff --git a/include/grub/emu/hostdisk.h b/include/grub/emu/hostdisk.h index 3c621a843..016ccf603 100644 --- a/include/grub/emu/hostdisk.h +++ b/include/grub/emu/hostdisk.h @@ -109,11 +109,6 @@ grub_util_get_fd_size (grub_util_fd_t fd, const char *name, unsigned *log_secsiz char * grub_util_get_os_disk (const char *os_dev); -#ifdef __linux__ -int -grub_hostdisk_linux_find_partition (char *dev, grub_disk_addr_t sector); -#endif - int grub_util_get_dm_node_linear_info (const char *dev, int *maj, int *min,