x86/PCI: Add pci_numachip_init() declaration
authorKrzysztof Wilczyński <kw@linux.com>
Thu, 12 Aug 2021 17:17:17 +0000 (17:17 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Aug 2021 19:07:31 +0000 (14:07 -0500)
numachip.c defines pci_numachip_init(), but neglected to include its
declaration, causing the following sparse and compile time warnings:

  arch/x86/pci/numachip.c:108:12: warning: no previous prototype for function 'pci_numachip_init' [-Wmissing-prototypes]
  arch/x86/pci/numachip.c:108:12: warning: symbol 'pci_numachip_init' was not declared. Should it be static?

Include asm/numachip/numachip.h, which includes the missing declaration.

Link: https://lore.kernel.org/r/20210812171717.1471243-1-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/numachip.c

index 01a085d9135a35aaf4e334386057f85eced1c9d8..4f0147d4e2258f52599f909320ee20136b46e5ab 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <linux/pci.h>
 #include <asm/pci_x86.h>
+#include <asm/numachip/numachip.h>
 
 static u8 limit __read_mostly;