Skip to contentSkip to conversation

crypto: aspeed: change aspeed_acry_akcipher_algs to static

PATCH New Yang Yingliang 4 participants 4 messages Jan 19, 2023 – Jan 27, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: aspeed: change aspeed_acry_akcipher_algs to static

aspeed_acry_akcipher_algs is only used in aspeed-acry.c now, change it to static.

---
 drivers/crypto/aspeed/aspeed-acry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/aspeed/aspeed-acry.c +1 -1
index 6d3790583f8b..164c524015f0 100644
@@ -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,
Signature · 1 line
2.25.1
maintainer
#2 lore raw

PATCH 1/1 crypto: aspeed: change aspeed_acry_akcipher_algs to static

In reply to Yang Yingliang
Quoted 4 lines

aspeed_acry_akcipher_algs is only used in aspeed-acry.c now, change it to static.

Quoted 21 lines
---
 drivers/crypto/aspeed/aspeed-acry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/aspeed/aspeed-acry.c +1 -1
index 6d3790583f8b..164c524015f0 100644
@@ -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,
--
2.25.1

maintainer
#3 lore raw

PATCH 1/1 crypto: aspeed: change aspeed_acry_akcipher_algs to static

In reply to Yang Yingliang
Quoted 7 lines · Yang Yingliang

aspeed_acry_akcipher_algs is only used in aspeed-acry.c now, change it to static.

---
 drivers/crypto/aspeed/aspeed-acry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt