summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ux500/hash
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-27 11:17:40 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-06-28 16:06:33 +0800
commit9ac1c3200c79e7b83b881232f40bc9e34b040516 (patch)
tree4a6ce09019681a00689026452e2a03c6082f963b /drivers/crypto/ux500/hash
parent61dc0a446e5d08f2de8a24b45f69a1e302bb1b1b (diff)
downloadlinux-9ac1c3200c79e7b83b881232f40bc9e34b040516.tar.gz
linux-9ac1c3200c79e7b83b881232f40bc9e34b040516.tar.bz2
linux-9ac1c3200c79e7b83b881232f40bc9e34b040516.zip
crypto: ux500 - do not build with -O0
The ARM allmodconfig build currently warngs because of the ux500 crypto driver not working well with the jump label implementation that we started using for dynamic debug, which breaks building with 'gcc -O0': In file included from /git/arm-soc/include/linux/jump_label.h:105:0, from /git/arm-soc/include/linux/dynamic_debug.h:5, from /git/arm-soc/include/linux/printk.h:289, from /git/arm-soc/include/linux/kernel.h:13, from /git/arm-soc/include/linux/clk.h:16, from /git/arm-soc/drivers/crypto/ux500/hash/hash_core.c:16: /git/arm-soc/arch/arm/include/asm/jump_label.h: In function 'hash_set_dma_transfer': /git/arm-soc/arch/arm/include/asm/jump_label.h:13:7: error: asm operand 0 probably doesn't match constraints [-Werror] asm_volatile_goto("1:\n\t" Turning off compiler optimizations has never really been supported here, and it's only used when debugging the driver. I have not found a good reason for doing this here, other than a misguided attempt to produce more readable assembly output. Also, the driver is only used in obsolete hardware that almost certainly nobody will spend time debugging any more. This just removes the -O0 flag from the compiler options. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ux500/hash')
-rw-r--r--drivers/crypto/ux500/hash/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ux500/hash/Makefile b/drivers/crypto/ux500/hash/Makefile
index b2f90d9bac72..784d9c0a8853 100644
--- a/drivers/crypto/ux500/hash/Makefile
+++ b/drivers/crypto/ux500/hash/Makefile
@@ -4,7 +4,7 @@
# License terms: GNU General Public License (GPL) version 2
#
ifdef CONFIG_CRYPTO_DEV_UX500_DEBUG
-CFLAGS_hash_core.o := -DDEBUG -O0
+CFLAGS_hash_core.o := -DDEBUG
endif
obj-$(CONFIG_CRYPTO_DEV_UX500_HASH) += ux500_hash.o