OSDN Git Service

s390: disable asm code expolines if cc does not support it
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 15 Jun 2018 08:22:18 +0000 (10:22 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:14:37 +0000 (10:14 +0200)
commit157484abb9b05e3f49cd3903202ffad35cea4350
treef6c203fdc09fe7a4b1cd412c986eae66d3b71976
parent64e03ff72623b8c2ea89ca3cb660094e019ed4ae
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>
arch/s390/Makefile
arch/s390/include/asm/nospec-insn.h