Skip to content

Commit

Permalink
[POWERPC] iSeries: Declare iSeries_pci_final_fixup in pci.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 3, 2007
1 parent 1e10590 commit 26b6d5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions arch/powerpc/platforms/iseries/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
6 changes: 1 addition & 5 deletions arch/powerpc/platforms/iseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -74,11 +75,6 @@
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 {
Expand Down

0 comments on commit 26b6d5b

Please sign in to comment.