diff mbox series

ARM: Add method to mach/pci.h

Message ID VI1PR07MB443283DF94F9F8942E6A3ADAFD000@VI1PR07MB4432.eurprd07.prod.outlook.com (mailing list archive)
State New, archived
Headers show
Series ARM: Add method to mach/pci.h | expand

Commit Message

Philippe Mazenauer May 22, 2019, 8:54 a.m. UTC
Adding method pcibios_report_status() to mach/pci.h, so as to remove the
extern declaration in dc21285.c, and remove missing-prototypes warning
in kernel/bios32.c.

../arch/arm/kernel/bios32.c:59:6: warning: no previous prototype for ‘pcibios_report_status’ [-Wmissing-prototypes]
 void pcibios_report_status(u_int status_mask, int warn)
      ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
 arch/arm/include/asm/mach/pci.h    | 2 ++
 arch/arm/mach-footbridge/dc21285.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h
index 233b4b50eff3..1e07612bcbdb 100644
--- a/arch/arm/include/asm/mach/pci.h
+++ b/arch/arm/include/asm/mach/pci.h
@@ -57,6 +57,8 @@  struct pci_sys_data {
 	void		*private_data;	/* platform controller private data	*/
 };
 
+void pcibios_report_status(u_int status_mask, int warn);
+
 /*
  * Call this with your hw_pci struct to initialise the PCI system.
  */
diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c
index 16d71bac0061..75d97cde7655 100644
--- a/arch/arm/mach-footbridge/dc21285.c
+++ b/arch/arm/mach-footbridge/dc21285.c
@@ -34,7 +34,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)