]> err.no Git - linux-2.6/commitdiff
[POWERPC] iSeries: Declare iSeries_pci_final_fixup in pci.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Nov 2007 06:06:56 +0000 (17:06 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 3 Dec 2007 02:56:27 +0000 (13:56 +1100)
Fixes sparse warning:
arch/powerpc/platforms/iseries/pci.c:169:13: warning: symbol 'iSeries_pci_final_fixup' was not declared. Should it be static?

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/pci.h
arch/powerpc/platforms/iseries/setup.c

index 33a8489fde54c636260781a944aa82b2549348e7..730986bc917a7ecde3c724075bc147bf62423394 100644 (file)
@@ -59,5 +59,10 @@ static inline u64 iseries_ds_addr(struct device_node *node)
 }
 
 extern void    iSeries_Device_Information(struct pci_dev*, int);
+#ifdef CONFIG_PCI
+extern void    iSeries_pci_final_fixup(void);
+#else
+static void    iSeries_pci_final_fixup(void) { }
+#endif
 
 #endif /* _PLATFORMS_ISERIES_PCI_H */
index 0877a88341100e7cdf25a49c3167f0c3a94fdffc..8a652da2afc383e99121c927afb79e49c24f7f8f 100644 (file)
@@ -63,6 +63,7 @@
 #include "main_store.h"
 #include "call_sm.h"
 #include "call_hpt.h"
+#include "pci.h"
 
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
 static unsigned long build_iSeries_Memory_Map(void);
 static void iseries_shared_idle(void);
 static void iseries_dedicated_idle(void);
-#ifdef CONFIG_PCI
-extern void iSeries_pci_final_fixup(void);
-#else
-static void iSeries_pci_final_fixup(void) { }
-#endif
 
 
 struct MemoryBlock {