crypto: arch - conditionalize crypto api in arch glue for lib code
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 25 Nov 2019 10:31:12 +0000 (11:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 Nov 2019 05:08:49 +0000 (13:08 +0800)
commit8394bfec51e0e565556101bcc4e2fe7551104cd8
treef6500eacc0aa2e818f39286ee59f3e106a4b6578
parent4ee812f6143d78d8ba1399671d78c8d78bf2817c
crypto: arch - conditionalize crypto api in arch glue for lib code

For glue code that's used by Zinc, the actual Crypto API functions might
not necessarily exist, and don't need to exist either. Before this
patch, there are valid build configurations that lead to a unbuildable
kernel. This fixes it to conditionalize those symbols on the existence
of the proper config entry.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/chacha-glue.c
arch/arm/crypto/curve25519-glue.c
arch/arm/crypto/poly1305-glue.c
arch/arm64/crypto/chacha-neon-glue.c
arch/arm64/crypto/poly1305-glue.c
arch/mips/crypto/chacha-glue.c
arch/mips/crypto/poly1305-glue.c
arch/x86/crypto/blake2s-glue.c
arch/x86/crypto/chacha_glue.c
arch/x86/crypto/curve25519-x86_64.c
arch/x86/crypto/poly1305_glue.c