From: Andy Shevchenko Date: Fri, 13 Aug 2021 15:36:19 +0000 (+0300) Subject: PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=081a306389b0f42e36c0a723444e56502c86914c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n [ Upstream commit 817f9916a6e96ae43acdd4e75459ef4f92d96eb1 ] The CONFIG_PCI=y case got a new parameter long time ago. Sync the stub as well. [bhelgaas: add parameter names] Fixes: 725522b5453d ("PCI: add the sysfs driver name to all modules") Link: https://lore.kernel.org/r/20210813153619.89574-1-andriy.shevchenko@linux.intel.com Reported-by: kernel test robot Signed-off-by: Andy Shevchenko Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- diff --git a/include/linux/pci.h b/include/linux/pci.h index 59f4d10568c6..66c0d5fad0cb 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1633,8 +1633,9 @@ static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; } static inline void pci_disable_device(struct pci_dev *dev) { } static inline int pci_assign_resource(struct pci_dev *dev, int i) { return -EBUSY; } -static inline int __pci_register_driver(struct pci_driver *drv, - struct module *owner) +static inline int __must_check __pci_register_driver(struct pci_driver *drv, + struct module *owner, + const char *mod_name) { return 0; } static inline int pci_register_driver(struct pci_driver *drv) { return 0; }