Skip to content

Commit f2f12cf

Browse files
bjorn-helgaastsbogend
authored andcommitted
MIPS: lantiq: Fix pcibios_plat_dev_init() "no previous prototype" warning
After bbd8810 ("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>
1 parent 83767a6 commit f2f12cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/mips/pci/fixup-lantiq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <linux/of_irq.h>
88
#include <linux/of_pci.h>
9+
#include <linux/pci.h>
910

1011
int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL;
1112
int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;

0 commit comments

Comments
 (0)