x86/bugs: Move the l1tf function and define pr_fmt properly
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 20 Jun 2018 20:42:57 +0000 (16:42 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Jun 2018 06:38:34 +0000 (08:38 +0200)
commit56563f53d3066afa9e63d6c997bf67e76a8b05c0
tree0258f96d308d3592524164f3a23f684bb537eb09
parent377eeaa8e11fe815b1d07c81c4a0e2843a8c15eb
x86/bugs: Move the l1tf function and define pr_fmt properly

The pr_warn in l1tf_select_mitigation would have used the prior pr_fmt
which was defined as "Spectre V2 : ".

Move the function to be past SSBD and also define the pr_fmt.

Fixes: 17dbca119312 ("x86/speculation/l1tf: Add sysfs reporting for l1tf")
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/bugs.c