[PATCH] Small fix in eeh definitions when CONFIG_EEH not enabled
Undefined symbols (eeh_add_device_tree_early and eeh_remove_bus_device) when EEH is not enabled. This small patch will fix this. Acked-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
9da5cad61c
commit
022930ebea
@@ -118,6 +118,9 @@ 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_remove_device(struct pci_dev *dev) { }
|
||||||
|
|
||||||
|
static inline void eeh_add_device_tree_early(struct device_node *dn) { }
|
||||||
|
|
||||||
|
static inline void eeh_remove_bus_device(struct pci_dev *dev) { }
|
||||||
#define EEH_POSSIBLE_ERROR(val, type) (0)
|
#define EEH_POSSIBLE_ERROR(val, type) (0)
|
||||||
#define EEH_IO_ERROR_VALUE(size) (-1UL)
|
#define EEH_IO_ERROR_VALUE(size) (-1UL)
|
||||||
#endif /* CONFIG_EEH */
|
#endif /* CONFIG_EEH */
|
||||||
|
Reference in New Issue
Block a user