projects/linux·commit 1c6cc5fd

[PATCH] powerpc: restore eeh_add_device_late() prototype stub

1c6cc5fd · Mark Fasheh <[email protected]> · 2006-03-07 21:55:20 -08:00

We fixed this:

arch/powerpc/platforms/pseries/eeh.c: In function `eeh_add_device_tree_late':
arch/powerpc/platforms/pseries/eeh.c:901: warning: implicit declaration of function `eeh_add_device_late'
arch/powerpc/platforms/pseries/eeh.c: At top level:
arch/powerpc/platforms/pseries/eeh.c:918: error: conflicting types for 'eeh_add_device_late'
arch/powerpc/platforms/pseries/eeh.c:901: error: previous implicit declaration of 'eeh_add_device_late' was here
make[2]: *** [arch/powerpc/platforms/pseries/eeh.o] Error 1

But we forgot the !CONFIG_EEH stub.

Signed-off-by: Mark Fasheh <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
1c6cc5fd32978ffdc4d0acf8592d3901adefbdad
Parents
a19cbd4b

Changes

1 files changed · +2 −0

FileStatusAddDelContent
include/asm-powerpc/eeh.hmodified+2−0View file

include/asm-powerpc/eeh.h

View file
diff --git a/include/asm-powerpc/eeh.h b/include/asm-powerpc/eeh.h
index eb39203..5207758 100644
--- a/include/asm-powerpc/eeh.h
+++ b/include/asm-powerpc/eeh.h
@@ -118,6 +118,8 @@ static inline void pci_addr_cache_build(void) { }
static inline void eeh_add_device_early(struct device_node *dn) { }
+static inline void eeh_add_device_late(struct pci_dev *dev) { }
+
static inline void eeh_remove_device(struct pci_dev *dev) { }
static inline void eeh_add_device_tree_early(struct device_node *dn) { }