mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
MIPS: lantiq: Fix pcibios_plat_dev_init() "no previous prototype" warning
After bbd8810d39 ("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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
83767a67e7
commit
f2f12cf4e5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user