Messages in this thread Patch in this message | | | From | Yi Wang <> | Subject | [PATCH 1/3] x86/cpu: fix prototype warning in cacheinfo.c | Date | Wed, 7 Nov 2018 16:54:35 +0800 |
| |
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@zte.com.cn> --- 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
| |