crypto: sunxi-ss - prevent compilation on 64-bit
authorAndre Przywara <andre.przywara@arm.com>
Mon, 1 Feb 2016 17:39:21 +0000 (17:39 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Feb 2016 07:33:21 +0000 (15:33 +0800)
The driver for the sunxi-ss crypto engine is not entirely 64-bit safe,
compilation on arm64 spits some warnings.
The proper fix was deemed to involved [1], so since 64-bit SoCs won't
have this IP block we just disable this driver for 64-bit.

[1]: http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/399988.html
     (and the reply)

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig

index 0a6e0b72284b709d8c2f84a65f2447c8d50a885c..fed3ffbec4c16e49cf9df2b56616aca5ef58cefc 100644 (file)
@@ -488,7 +488,7 @@ config CRYPTO_DEV_IMGTEC_HASH
 
 config CRYPTO_DEV_SUN4I_SS
        tristate "Support for Allwinner Security System cryptographic accelerator"
-       depends on ARCH_SUNXI
+       depends on ARCH_SUNXI && !64BIT
        select CRYPTO_MD5
        select CRYPTO_SHA1
        select CRYPTO_AES