* [PATCH] arch/x86/kernel/cpu/common.c - add proper prototypes
@ 2019-08-08 18:18 Valdis Klētnieks
0 siblings, 0 replies; only message in thread
From: Valdis Klētnieks @ 2019-08-08 18:18 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar; +Cc: linux-kernel, x86
When building withW=1, we get a warning..
CC arch/x86/kernel/cpu/common.o
arch/x86/kernel/cpu/common.c:1952:6: warning: no previous prototype for 'arch_smt_update' [-Wmissing-prototypes]
1952 | void arch_smt_update(void)
| ^~~~~~~~~~~~~~~
Provide the proper #include so the prototype is found.
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index e0489d2860d3..b8ed6d8e55df 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -14,6 +14,7 @@
#include <linux/sched/mm.h>
#include <linux/sched/clock.h>
#include <linux/sched/task.h>
+#include <linux/sched/smt.h>
#include <linux/init.h>
#include <linux/kprobes.h>
#include <linux/kgdb.h>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-08 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-08 18:18 [PATCH] arch/x86/kernel/cpu/common.c - add proper prototypes Valdis Klētnieks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox