Skip to content

Commit 0e79ad8

Browse files
Benjamin Thielsuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 31a9122 commit 0e79ad8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/cpu/feat_ctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <asm/msr-index.h>
66
#include <asm/processor.h>
77
#include <asm/vmx.h>
8+
#include "cpu.h"
89

910
#undef pr_fmt
1011
#define pr_fmt(fmt) "x86/cpu: " fmt

0 commit comments

Comments
 (0)