Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] ARM: Add method to mach/pci.h
@ 2019-05-22  8:54 Philippe Mazenauer
  0 siblings, 0 replies; only message in thread
From: Philippe Mazenauer @ 2019-05-22  8:54 UTC (permalink / raw)
  Cc: Philippe Mazenauer, Russell King, moderated list:ARM PORT, open list

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 --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)
-- 
2.17.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22  8:54 [PATCH] ARM: Add method to mach/pci.h Philippe Mazenauer

Linux-ARM-Kernel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/0 linux-arm-kernel/git/0.git
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/1 linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ https://lore.kernel.org/linux-arm-kernel \
		linux-arm-kernel@lists.infradead.org infradead-linux-arm-kernel@archiver.kernel.org
	public-inbox-index linux-arm-kernel


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-arm-kernel


AGPL code for this site: git clone https://public-inbox.org/ public-inbox