summaryrefslogtreecommitdiffstats
path: root/arch/s390/Makefile
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-06-15 10:22:18 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-06-25 10:14:37 +0200
commit157484abb9b05e3f49cd3903202ffad35cea4350 (patch)
treef6c203fdc09fe7a4b1cd412c986eae66d3b71976 /arch/s390/Makefile
parent64e03ff72623b8c2ea89ca3cb660094e019ed4ae (diff)
downloadlinux-157484abb9b05e3f49cd3903202ffad35cea4350.tar.bz2
s390: disable asm code expolines if cc does not support it
To avoid a mixture of asm code with expolines and c code without them, propagate CC_USING_EXPOLINE to KBUILD_AFLAGS and use it to detect whether asm code should have expolines or not. Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r--arch/s390/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index 68a690442be0..8a41110d3a9a 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -82,6 +82,7 @@ ifdef CONFIG_EXPOLINE
CC_FLAGS_EXPOLINE += -mindirect-branch-table
export CC_FLAGS_EXPOLINE
cflags-y += $(CC_FLAGS_EXPOLINE) -DCC_USING_EXPOLINE
+ aflags-y += -DCC_USING_EXPOLINE
endif
endif