crypto: arm/aes-ce - fix broken monolithic build
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 29 Nov 2016 13:05:30 +0000 (13:05 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 Nov 2016 12:01:41 +0000 (20:01 +0800)
commit7f329c17427ba517a9f6aa37133c73ff19bec5fb
treebf24a4c34acb077128e31003635014fe7d2c2e7e
parent6fdf436fd854bb3be41235c3bd5d1c54a5e39daa
crypto: arm/aes-ce - fix broken monolithic build

When building the arm64 kernel with both CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
and CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y configured, the build breaks with
the following error:

arch/arm64/crypto/aes-neon-blk.o:(.bss+0x0): multiple definition of `aes_simd_algs'
arch/arm64/crypto/aes-ce-blk.o:(.bss+0x0): first defined here

Fix this by making aes_simd_algs 'static'.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-glue.c