PCI: Update pci_find_capability() stub return types
f646c2a0a668 ("PCI: Return u8 from pci_find_capability() and similar") and ee8b1c478a9f ("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/20240327180234.1529164-1-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
This commit is contained in:
parent
0e1fdd222f
commit
d41abe063f
@ -2011,10 +2011,9 @@ static inline int pci_register_driver(struct pci_driver *drv)
|
||||
static inline void pci_unregister_driver(struct pci_driver *drv) { }
|
||||
static inline u8 pci_find_capability(struct pci_dev *dev, int cap)
|
||||
{ return 0; }
|
||||
static inline int pci_find_next_capability(struct pci_dev *dev, u8 post,
|
||||
int cap)
|
||||
static inline u8 pci_find_next_capability(struct pci_dev *dev, u8 post, int cap)
|
||||
{ return 0; }
|
||||
static inline int pci_find_ext_capability(struct pci_dev *dev, int cap)
|
||||
static inline u16 pci_find_ext_capability(struct pci_dev *dev, int cap)
|
||||
{ return 0; }
|
||||
|
||||
static inline u64 pci_get_dsn(struct pci_dev *dev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user