mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/cpu: Fix a -Wmissing-prototypes warning
@ 2020-03-23 10:59 Benjamin Thiel
  2020-03-23 11:08 ` [tip: x86/cleanups] x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl() tip-bot2 for Benjamin Thiel
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Thiel @ 2020-03-23 10:59 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: LKML, X86 ML, Benjamin Thiel

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>
---
 arch/x86/kernel/cpu/feat_ctl.c | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-23 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 10:59 [PATCH] x86/cpu: Fix a -Wmissing-prototypes warning Benjamin Thiel
2020-03-23 11:08 ` [tip: x86/cleanups] x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl() tip-bot2 for Benjamin Thiel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®