From: Bjorn Helgaas Date: Tue, 10 Oct 2023 14:34:05 +0000 (-0500) Subject: MIPS: lantiq: Fix pcibios_plat_dev_init() "no previous prototype" warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f2f12cf4e5f6173febc8db8c3e533141b0e667a4;p=linux.git MIPS: lantiq: Fix pcibios_plat_dev_init() "no previous prototype" warning After bbd8810d3998 ("PCI: Remove unused includes and superfluous struct declaration"), no longer includes , which provides the extern declarations for pcibios_plat_dev_init() and pcibios_map_irq() via . 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 directly to get these declarations. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310070445.tzRBNYRC-lkp@intel.com/ Signed-off-by: Bjorn Helgaas Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c index 105569c1b7127..8f5fb98b3984e 100644 --- a/arch/mips/pci/fixup-lantiq.c +++ b/arch/mips/pci/fixup-lantiq.c @@ -6,6 +6,7 @@ #include #include +#include int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL; int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;