summaryrefslogtreecommitdiff
path: root/arch/x86/pci/numachip.c
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <kw@linux.com>2021-08-12 20:17:17 +0300
committerBjorn Helgaas <bhelgaas@google.com>2021-08-12 22:07:31 +0300
commite15ac2080ec2fde6ebc59f1c8afdf7c52374035e (patch)
tree31183771d9b9b15621bf7ee9c5fa3433a09937c7 /arch/x86/pci/numachip.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-e15ac2080ec2fde6ebc59f1c8afdf7c52374035e.tar.xz
x86/PCI: Add pci_numachip_init() declaration
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>
Diffstat (limited to 'arch/x86/pci/numachip.c')
-rw-r--r--arch/x86/pci/numachip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/pci/numachip.c b/arch/x86/pci/numachip.c
index 01a085d9135a..4f0147d4e225 100644
--- a/arch/x86/pci/numachip.c
+++ b/arch/x86/pci/numachip.c
@@ -12,6 +12,7 @@
#include <linux/pci.h>
#include <asm/pci_x86.h>
+#include <asm/numachip/numachip.h>
static u8 limit __read_mostly;