From: Krzysztof Wilczyński Date: Thu, 12 Aug 2021 17:17:17 +0000 (+0000) Subject: x86/PCI: Add pci_numachip_init() declaration X-Git-Tag: v5.15~332^2~19^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e15ac2080ec2fde6ebc59f1c8afdf7c52374035e;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Bjorn Helgaas --- 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 #include +#include static u8 limit __read_mostly;