x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl()
authorBenjamin Thiel <b.thiel@posteo.de>
Mon, 23 Mar 2020 10:59:34 +0000 (11:59 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Mar 2020 11:01:59 +0000 (12:01 +0100)
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
arch/x86/kernel/cpu/feat_ctl.c

index 0268185bef944921706c2ad008849a1428180c75..29a3bedabd060f9668b41aacf6609cdecb166a52 100644 (file)
@@ -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