crypto: ccp - Make ccp_register_rsa_alg static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 19 Mar 2019 13:50:35 +0000 (21:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Mar 2019 05:55:33 +0000 (13:55 +0800)
Fix sparse warning:

drivers/crypto/ccp/ccp-crypto-rsa.c:251:5:
 warning: symbol 'ccp_register_rsa_alg' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-rsa.c

index 05850dfd794076b2541c969319479cf93f37dbeb..0b8aab009e7b170393b21b5a1f220bc5d74adaff 100644 (file)
@@ -248,7 +248,8 @@ static struct ccp_rsa_def rsa_algs[] = {
        }
 };
 
-int ccp_register_rsa_alg(struct list_head *head, const struct ccp_rsa_def *def)
+static int ccp_register_rsa_alg(struct list_head *head,
+                               const struct ccp_rsa_def *def)
 {
        struct ccp_crypto_akcipher_alg *ccp_alg;
        struct akcipher_alg *alg;