aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/nospec-sysfs.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-04-09 09:33:12 -0700
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-04-11 13:36:53 +0200
commit475c8e9e89db2fcecf837ac41dcb6aed4ba72c61 (patch)
treea28dec235b883720131aae44c538460226b1e03a /arch/s390/kernel/nospec-sysfs.c
parents390: make chkbss work with clang (diff)
downloadlinux-dev-475c8e9e89db2fcecf837ac41dcb6aed4ba72c61.tar.xz
linux-dev-475c8e9e89db2fcecf837ac41dcb6aed4ba72c61.zip
s390: Convert IS_ENABLED uses to __is_defined
IS_ENABLED should be reserved for CONFIG_<FOO> uses so convert the uses of IS_ENABLED with a #define to __is_defined. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/nospec-sysfs.c')
-rw-r--r--arch/s390/kernel/nospec-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/nospec-sysfs.c b/arch/s390/kernel/nospec-sysfs.c
index e30e580ae362..48f472bf9290 100644
--- a/arch/s390/kernel/nospec-sysfs.c
+++ b/arch/s390/kernel/nospec-sysfs.c
@@ -15,7 +15,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev,
{
if (test_facility(156))
return sprintf(buf, "Mitigation: etokens\n");
- if (IS_ENABLED(CC_USING_EXPOLINE) && !nospec_disable)
+ if (__is_defined(CC_USING_EXPOLINE) && !nospec_disable)
return sprintf(buf, "Mitigation: execute trampolines\n");
if (__test_facility(82, S390_lowcore.alt_stfle_fac_list))
return sprintf(buf, "Mitigation: limited branch prediction\n");