crypto: aesni - make arrays aesni_simd_skciphers and aesni_simd_skciphers2 static
authorColin Ian King <colin.king@canonical.com>
Sun, 20 Aug 2017 21:34:38 +0000 (22:34 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:06 +0000 (17:43 +0800)
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>
arch/x86/crypto/aesni-intel_glue.c

index 5c15d6b573299e75c2eec54d98bbde9f48e67637..c4c20286f27eb7239be96740182b6b20fe4ea2e4 100644 (file)
@@ -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;