summaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-10-10 09:34:05 -0500
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-10-19 10:25:49 +0200
commitf2f12cf4e5f6173febc8db8c3e533141b0e667a4 (patch)
treee3404cbdf1756a954cdbf90be4d94014d2db95a7 /arch/mips/pci
parent83767a67e7b6a0291cde5681ec7e3708f3f8f877 (diff)
downloadlinux-stable-f2f12cf4e5f6173febc8db8c3e533141b0e667a4.tar.gz
linux-stable-f2f12cf4e5f6173febc8db8c3e533141b0e667a4.tar.bz2
linux-stable-f2f12cf4e5f6173febc8db8c3e533141b0e667a4.zip
MIPS: lantiq: Fix pcibios_plat_dev_init() "no previous prototype" warning
After bbd8810d3998 ("PCI: Remove unused includes and superfluous struct declaration"), <linux/of_pci.h> no longer includes <linux/pci.h>, which provides the extern declarations for pcibios_plat_dev_init() and pcibios_map_irq() via <asm/pci.h>. This results in these new warnings: arch/mips/pci/fixup-lantiq.c:13:5: warning: no previous prototype for 'pcibios_plat_dev_init' [-Wmissing-prototypes] arch/mips/pci/fixup-lantiq.c:24:5: warning: no previous prototype for 'pcibios_map_irq' [-Wmissing-prototypes] Include <linux/pci.h> directly to get these declarations. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202310070445.tzRBNYRC-lkp@intel.com/ Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/fixup-lantiq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c
index 105569c1b712..8f5fb98b3984 100644
--- a/arch/mips/pci/fixup-lantiq.c
+++ b/arch/mips/pci/fixup-lantiq.c
@@ -6,6 +6,7 @@
#include <linux/of_irq.h>
#include <linux/of_pci.h>
+#include <linux/pci.h>
int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL;
int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;