[PATCH 1/3] x86/cpu: fix prototype warning in cacheinfo.c
From: Yi Wang
Date: Wed Nov 07 2018 - 03:58:34 EST
Missing include file causes warning:
arch/x86/kernel/cpu/cacheinfo.c:647:6: warning: no previous prototype for âcacheinfo_amd_init_llc_idâ [-Wmissing-prototypes]
arch/x86/kernel/cpu/cacheinfo.c:686:6: warning: no previous prototype for âcacheinfo_hygon_init_llc_idâ [-Wmissing-prototypes]
Signed-off-by: Yi Wang <wang.yi59@xxxxxxxxxx>
---
arch/x86/kernel/cpu/cacheinfo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c
index dc1b934..5bafd93 100644
--- a/arch/x86/kernel/cpu/cacheinfo.c
+++ b/arch/x86/kernel/cpu/cacheinfo.c
@@ -19,6 +19,7 @@
#include <asm/cpufeature.h>
#include <asm/amd_nb.h>
#include <asm/smp.h>
+#include <asm/cacheinfo.h>
#include "cpu.h"
--
1.8.3.1