From: Herbert Xu Date: Thu, 1 Dec 2016 05:45:05 +0000 (+0800) Subject: crypto: aes-ce - Make aes_simd_algs static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efad2b61ae258df4fb3896f5e7cd9c701f4979e6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: aes-ce - Make aes_simd_algs static The variable aes_simd_algs should be static. In fact if it isn't it causes build errors when multiple copies of aes-ce-glue.c are built into the kernel. Fixes: da40e7a4ba4d ("crypto: aes-ce - Convert to skcipher") Reported-by: kbuild test robot Signed-off-by: Herbert Xu --- diff --git a/arch/arm/crypto/aes-ce-glue.c b/arch/arm/crypto/aes-ce-glue.c index 4a507c6a9d82..8857531915bf 100644 --- a/arch/arm/crypto/aes-ce-glue.c +++ b/arch/arm/crypto/aes-ce-glue.c @@ -407,7 +407,7 @@ static struct skcipher_alg aes_algs[] = { { .decrypt = xts_decrypt, } }; -struct simd_skcipher_alg *aes_simd_algs[ARRAY_SIZE(aes_algs)]; +static struct simd_skcipher_alg *aes_simd_algs[ARRAY_SIZE(aes_algs)]; static void aes_exit(void) {