arch/x86/kernel/cpu/common.c - add proper prototypes
PATCH 1/1 arch/x86/kernel/cpu/common.c - add proper prototypes
When building withW=1, we get a warning..
CC arch/x86/kernel/cpu/common.oarch/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 <[email protected]>
arch/x86/kernel/cpu/common.c +1 -0
@@ -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>