At the moment, the function pci_numachip_init() is defined in the numachip.c file. Since this function has users outside of this file, add missing foward declaration to the pci_x86.h file. This resolves the following sparse and compile time warning: 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? Signed-off-by: Krzysztof Wilczyński <kw@xxxxxxxxx> --- arch/x86/include/asm/pci_x86.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h index 490411dba438..906f40cae3fc 100644 --- a/arch/x86/include/asm/pci_x86.h +++ b/arch/x86/include/asm/pci_x86.h @@ -50,6 +50,10 @@ enum pci_bf_sort_state { pci_dmi_bf, }; +/* numachip.c */ + +int pci_numachip_init(void); + /* pci-i386.c */ void pcibios_resource_survey(void); -- 2.32.0