1
0
Fork 0

crypto: ccp - Make ccp_register_rsa_alg static

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>
hifive-unleashed-5.2
YueHaibing 2019-03-19 21:50:35 +08:00 committed by Herbert Xu
parent cd1af98233
commit 52c899ec47
1 changed files with 2 additions and 1 deletions

View 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;