Skip to content

Commit 1c9fa29

Browse files
Colin Ian Kingherbertx
authored andcommitted
crypto: aesni - make arrays aesni_simd_skciphers and aesni_simd_skciphers2 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>
1 parent a502e10 commit 1c9fa29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/crypto/aesni-intel_glue.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,10 @@ static struct skcipher_alg aesni_skciphers[] = {
10671067
}
10681068
};
10691069

1070+
static
10701071
struct simd_skcipher_alg *aesni_simd_skciphers[ARRAY_SIZE(aesni_skciphers)];
10711072

1072-
struct {
1073+
static struct {
10731074
const char *algname;
10741075
const char *drvname;
10751076
const char *basename;

0 commit comments

Comments
 (0)