Skip to content

Commit

Permalink
crypto: aes-ce - Make aes_simd_algs static
Browse files Browse the repository at this point in the history
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: da40e7a ("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>
  • Loading branch information
Herbert Xu committed Dec 1, 2016
1 parent e2c1b82 commit efad2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/crypto/aes-ce-glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit efad2b6

Please sign in to comment.