提交 3b53eb90 编写于 作者: A Andy Shevchenko 提交者: Zheng Zengkai

PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n

stable inclusion
from stable-5.10.68
commit 5402b31c0c46fde28bbbc7993ce0d2823847d80c
bugzilla: 182671 https://gitee.com/openeuler/kernel/issues/I4EWUH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5402b31c0c46fde28bbbc7993ce0d2823847d80c

--------------------------------

[ Upstream commit 817f9916 ]

The CONFIG_PCI=y case got a new parameter long time ago.  Sync the stub as
well.

[bhelgaas: add parameter names]
Fixes: 725522b5 ("PCI: add the sysfs driver name to all modules")
Link: https://lore.kernel.org/r/20210813153619.89574-1-andriy.shevchenko@linux.intel.comReported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 cb46f7de
...@@ -1715,8 +1715,9 @@ static inline void pci_disable_device(struct pci_dev *dev) { } ...@@ -1715,8 +1715,9 @@ static inline void pci_disable_device(struct pci_dev *dev) { }
static inline int pcim_enable_device(struct pci_dev *pdev) { return -EIO; } static inline int pcim_enable_device(struct pci_dev *pdev) { return -EIO; }
static inline int pci_assign_resource(struct pci_dev *dev, int i) static inline int pci_assign_resource(struct pci_dev *dev, int i)
{ return -EBUSY; } { return -EBUSY; }
static inline int __pci_register_driver(struct pci_driver *drv, static inline int __must_check __pci_register_driver(struct pci_driver *drv,
struct module *owner) struct module *owner,
const char *mod_name)
{ return 0; } { return 0; }
static inline int pci_register_driver(struct pci_driver *drv) static inline int pci_register_driver(struct pci_driver *drv)
{ return 0; } { return 0; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册