summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.ibm.com>2018-04-10 12:39:34 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-04-16 09:10:23 +0200
commit232acdff21fb02f0ccd538cd29c9ee7e028b6101 (patch)
tree68fa2979c8db14b604ea80a3fba996a33ab4c216 /arch
parent701e188c6560d6abeba508f530c4224b4e830fb5 (diff)
downloadlinux-232acdff21fb02f0ccd538cd29c9ee7e028b6101.tar.bz2
s390/nospec: include cpu.h
Fix the following sparse warnings: symbol 'cpu_show_spectre_v1' was not declared. Should it be static? symbol 'cpu_show_spectre_v2' was not declared. Should it be static? Signed-off-by: Sebastian Ott <sebott@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/kernel/nospec-branch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/nospec-branch.c b/arch/s390/kernel/nospec-branch.c
index f236ce8757e8..46d49a11663f 100644
--- a/arch/s390/kernel/nospec-branch.c
+++ b/arch/s390/kernel/nospec-branch.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <linux/device.h>
+#include <linux/cpu.h>
#include <asm/nospec-branch.h>
static int __init nobp_setup_early(char *str)