From 37149a2f207944a69fc2c5f531da3e94729b30d4 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 9 Oct 2013 07:16:20 +0200 Subject: [PATCH] * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition): Removed. * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition): Made static. --- ChangeLog | 7 +++++++ grub-core/osdep/linux/hostdisk.c | 2 +- include/grub/emu/hostdisk.h | 5 ----- 3 files changed, 8 insertions(+), 6 deletions(-) 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,