ARM: 8911/1: move pcibios_report_status to <asm/pci.h>
authorBen Dooks <ben-linux@fluff.org>
Mon, 7 Oct 2019 13:56:09 +0000 (14:56 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 27 Oct 2019 21:14:40 +0000 (21:14 +0000)
Move the pcibios_report_status to <asm/pci.h> include to remove the
following sparse warning and to remove the extra definition in the
footbrdige dc21285.c driver:

arch/arm/kernel/bios32.c:59:6: warning: symbol 'pcibios_report_status' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/pci.h
arch/arm/mach-footbridge/dc21285.c

index 0abd389cf0ecaf034a535bbe4477c4d9b6fe274a..68e6f25784a4a85bdae684d2746169ece9d4a1b2 100644 (file)
@@ -27,5 +27,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
        return channel ? 15 : 14;
 }
 
+extern void pcibios_report_status(unsigned int status_mask, int warn);
+
 #endif /* __KERNEL__ */
 #endif
index 8b81a17f675d91e0717a86d3b70695f4d8d904ed..416462e3f5d63676fe8f00abca7aaa94c17f3e90 100644 (file)
@@ -31,7 +31,6 @@
                                  PCI_STATUS_PARITY) << 16)
 
 extern int setup_arm_irq(int, struct irqaction *);
-extern void pcibios_report_status(u_int status_mask, int warn);
 
 static unsigned long
 dc21285_base_address(struct pci_bus *bus, unsigned int devfn)