]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
crypto: aes-ce - Make aes_simd_algs static
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 1 Dec 2016 05:45:05 +0000 (13:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 1 Dec 2016 13:06:44 +0000 (21:06 +0800)
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 <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/aes-ce-glue.c

index 4a507c6a9d82622df835fd9d16764717ec4020e2..8857531915bfb0261cc35b9b1d8c70e1c4912f55 100644 (file)
@@ -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)
 {