hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/s390/kernel/nospec-branch.c
....@@ -38,7 +38,7 @@
3838 {
3939 if (test_facility(156))
4040 pr_info("Spectre V2 mitigation: etokens\n");
41
- if (IS_ENABLED(CC_USING_EXPOLINE) && !nospec_disable)
41
+ if (__is_defined(CC_USING_EXPOLINE) && !nospec_disable)
4242 pr_info("Spectre V2 mitigation: execute trampolines\n");
4343 if (__test_facility(82, S390_lowcore.alt_stfle_fac_list))
4444 pr_info("Spectre V2 mitigation: limited branch prediction\n");
....@@ -64,10 +64,10 @@
6464 * The machine supports etokens.
6565 * Disable expolines and disable nobp.
6666 */
67
- if (IS_ENABLED(CC_USING_EXPOLINE))
67
+ if (__is_defined(CC_USING_EXPOLINE))
6868 nospec_disable = 1;
6969 __clear_facility(82, S390_lowcore.alt_stfle_fac_list);
70
- } else if (IS_ENABLED(CC_USING_EXPOLINE)) {
70
+ } else if (__is_defined(CC_USING_EXPOLINE)) {
7171 /*
7272 * The kernel has been compiled with expolines.
7373 * Keep expolines enabled and disable nobp.