Skip to contentSkip to conversation

x86/cpu: Fix a -Wmissing-prototypes warning

PATCH Applied Benjamin Thiel 2 participants 2 messages Mar 23, 2020 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpu: Fix a -Wmissing-prototypes warning

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)

---
 arch/x86/kernel/cpu/feat_ctl.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/feat_ctl.c +1 -0
index 0268185bef94..29a3bedabd06 100644
@@ -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
Signature · 1 line
2.17.1
merge bot Applied
#1 lore raw

[tip: x86/cleanups] x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl()

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     0e79ad863df43b01090ae18c97de5c3787f069c6
Gitweb:        https://git.kernel.org/tip/0e79ad863df43b01090ae18c97de5c3787f069c6
Author:        Benjamin Thiel <[email protected]>
AuthorDate:    Mon, 23 Mar 2020 11:59:34 +01:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Mon, 23 Mar 2020 12:01:59 +01:00

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)
---
 arch/x86/kernel/cpu/feat_ctl.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/feat_ctl.c +1 -0
index 0268185..29a3bed 100644
@@ -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