crypto: aspeed - change aspeed_acry_akcipher_algs to static
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 19 Jan 2023 01:48:59 +0000 (09:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Jan 2023 10:58:09 +0000 (18:58 +0800)
aspeed_acry_akcipher_algs is only used in aspeed-acry.c now,
change it to static.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Neal Liu <neal_liu@aspeedtech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/aspeed/aspeed-acry.c

index 6d3790583f8b07f730b3328f003fa10ef28c2af9..164c524015f0dbd012e5e483d206fefcb815cce7 100644 (file)
@@ -603,7 +603,7 @@ static void aspeed_acry_rsa_exit_tfm(struct crypto_akcipher *tfm)
        crypto_free_akcipher(ctx->fallback_tfm);
 }
 
-struct aspeed_acry_alg aspeed_acry_akcipher_algs[] = {
+static struct aspeed_acry_alg aspeed_acry_akcipher_algs[] = {
        {
                .akcipher = {
                        .encrypt = aspeed_acry_rsa_enc,