Skip to content

Commit

Permalink
crypto: aesni - make arrays aesni_simd_skciphers and aesni_simd_skcip…
Browse files Browse the repository at this point in the history
…hers2 static

Arrays aesni_simd_skciphers and aesni_simd_skciphers2 are local to the
source and do not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'aesni_simd_skciphers' was not declared. Should it be static?
symbol 'aesni_simd_skciphers2' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Colin Ian King authored and Herbert Xu committed Sep 22, 2017
1 parent a502e10 commit 1c9fa29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/crypto/aesni-intel_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,9 +1067,10 @@ static struct skcipher_alg aesni_skciphers[] = {
}
};

static
struct simd_skcipher_alg *aesni_simd_skciphers[ARRAY_SIZE(aesni_skciphers)];

struct {
static struct {
const char *algname;
const char *drvname;
const char *basename;
Expand Down

0 comments on commit 1c9fa29

Please sign in to comment.