Skip to contentSkip to conversation

silence smp_read_mpc_oem() declared static but never defined warning

PATCH William Lee Irwin III 1 participant 1 message Oct 12, 2003

lore
Share & tools
lore
#0 lore raw

Moving the static function prototype within the calling inline silences this annoying warning.

include/asm-i386/mach-numaq/mach_mpparse.h +1 -3
diff -prauN linux-2.6.0-test7-bk3/include/asm-i386/mach-numaq/mach_mpparse.h numaq-2.6.0-test7-bk3-1/include/asm-i386/mach-numaq/mach_mpparse.h
@@ -1,9 +1,6 @@
 #ifndef __ASM_MACH_MPPARSE_H
 #define __ASM_MACH_MPPARSE_H
 
-static void __init smp_read_mpc_oem(struct mp_config_oemtable *oemtable,
-		        unsigned short oemsize);
-
 static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, 
 				struct mpc_config_translation *translation)
 {
@@ -27,6 +24,7 @@ static inline void mpc_oem_pci_bus(struc
 static inline void mps_oem_check(struct mp_config_table *mpc, char *oem, 
 		char *productid)
 {
+	static void smp_read_mpc_oem(struct mp_config_oemtable *, unsigned short);
 	if (strncmp(oem, "IBM NUMA", 8))
 		printk("Warning!  May not be a NUMA-Q system!\n");
 	if (mpc->mpc_oemptr)