summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-20 22:34:38 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 17:43:06 +0800
commit1c9fa294fe80f85c069c64d12b2429cf99a62937 (patch)
treea21d6ff8dc50dca90faa1a66239dc55bf44fb250 /arch
parenta502e1089e3f711599023de5baa3af2b911c630a (diff)
downloadlinux-0-day-1c9fa294fe80f85c069c64d12b2429cf99a62937.tar.gz
linux-0-day-1c9fa294fe80f85c069c64d12b2429cf99a62937.tar.xz
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/crypto/aesni-intel_glue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c
index 5c15d6b573299..c4c20286f27eb 100644
--- a/arch/x86/crypto/aesni-intel_glue.c
+++ b/arch/x86/crypto/aesni-intel_glue.c
@@ -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;