Skip to content

Commit d41abe0

Browse files
committed
PCI: Update pci_find_capability() stub return types
f646c2a ("PCI: Return u8 from pci_find_capability() and similar") and ee8b1c4 ("PCI: Return u16 from pci_find_ext_capability() and similar") updated the return type of the extern declarations, but neglected to update the type of the stubs used when CONFIG_PCI is not enabled. Update them to match the extern declarations. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
1 parent 0e1fdd2 commit d41abe0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/linux/pci.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,10 +2011,9 @@ static inline int pci_register_driver(struct pci_driver *drv)
20112011
static inline void pci_unregister_driver(struct pci_driver *drv) { }
20122012
static inline u8 pci_find_capability(struct pci_dev *dev, int cap)
20132013
{ return 0; }
2014-
static inline int pci_find_next_capability(struct pci_dev *dev, u8 post,
2015-
int cap)
2014+
static inline u8 pci_find_next_capability(struct pci_dev *dev, u8 post, int cap)
20162015
{ return 0; }
2017-
static inline int pci_find_ext_capability(struct pci_dev *dev, int cap)
2016+
static inline u16 pci_find_ext_capability(struct pci_dev *dev, int cap)
20182017
{ return 0; }
20192018

20202019
static inline u64 pci_get_dsn(struct pci_dev *dev)

0 commit comments

Comments
 (0)