[PATCH] Clean up usage of boot_dev
authors.hauer@pengutronix.de <s.hauer@pengutronix.de>
Thu, 2 Nov 2006 12:56:10 +0000 (13:56 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 Nov 2006 03:44:59 +0000 (14:44 +1100)
dev_t boot_dev is declared in arch/powerpc/kernel/setup_32.c
and in arch/powerpc/kernel/setup_64.c but not used in these files.
It is only used in arch/powerpc/platforms/powermac/setup.c, so make
it static in this file.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/powermac/setup.c

index 191d0ab0922227908db8dc6fc3b0fefa53ed876d..517ed1b1b1600f4f7837e0c59279cd851bb10f74 100644 (file)
@@ -63,10 +63,6 @@ unsigned int DMA_MODE_WRITE;
 
 int have_of = 1;
 
-#ifdef CONFIG_PPC_MULTIPLATFORM
-dev_t boot_dev;
-#endif /* CONFIG_PPC_MULTIPLATFORM */
-
 #ifdef CONFIG_VGA_CONSOLE
 unsigned long vgacon_remap_base;
 #endif
index b1b0cda3f7480aa3a9db5fee3c67315400293538..ae6b67ce54e78cdf07b4846134d8f324f35425f9 100644 (file)
@@ -71,7 +71,6 @@
 
 int have_of = 1;
 int boot_cpuid = 0;
-dev_t boot_dev;
 u64 ppc64_pft_size;
 
 /* Pick defaults since we might want to patch instructions
index 824a618396ab17bf34eb84a02cea1509efff64c7..cb1c342061e20e438083bc6b8314df8eda8c21a0 100644 (file)
@@ -361,7 +361,7 @@ char *bootdevice;
 void *boot_host;
 int boot_target;
 int boot_part;
-extern dev_t boot_dev;
+static dev_t boot_dev;
 
 #ifdef CONFIG_SCSI
 void __init note_scsi_host(struct device_node *node, void *host)