diff options
author | Benjamin Thiel <b.thiel@posteo.de> | 2020-03-23 11:59:34 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-03-23 12:01:59 +0100 |
commit | 0e79ad863df43b01090ae18c97de5c3787f069c6 (patch) | |
tree | a818d29efd6c5a705eda38c028ed162fb49c6ff9 /arch/x86 | |
parent | 31a9122058bc5f042cb04bcdb8cd9e6c77fdae8d (diff) |
x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl()
Add a missing include in order to fix -Wmissing-prototypes warning:
arch/x86/kernel/cpu/feat_ctl.c:95:6: warning: no previous prototype for ‘init_ia32_feat_ctl’ [-Wmissing-prototypes]
95 | void init_ia32_feat_ctl(struct cpuinfo_x86 *c)
Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200323105934.26597-1-b.thiel@posteo.de
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/feat_ctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/feat_ctl.c b/arch/x86/kernel/cpu/feat_ctl.c index 0268185bef94..29a3bedabd06 100644 --- a/arch/x86/kernel/cpu/feat_ctl.c +++ b/arch/x86/kernel/cpu/feat_ctl.c @@ -5,6 +5,7 @@ #include <asm/msr-index.h> #include <asm/processor.h> #include <asm/vmx.h> +#include "cpu.h" #undef pr_fmt #define pr_fmt(fmt) "x86/cpu: " fmt |