crypto: vmx - Make p8_init and p8_exit static
authorYueHaibing <yuehaibing@huawei.com>
Thu, 21 Mar 2019 15:11:48 +0000 (23:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Mar 2019 05:55:34 +0000 (13:55 +0800)
Fix sparse warnings:

drivers/crypto/vmx/vmx.c:44:12: warning:
 symbol 'p8_init' was not declared. Should it be static?
drivers/crypto/vmx/vmx.c:70:13: warning:
 symbol 'p8_exit' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/vmx/vmx.c

index 31a98dc6f8497ac9ee70776f47fc506c79cb6c30..a9f5198306155d7886641a7a15a00e4ef254626e 100644 (file)
@@ -41,7 +41,7 @@ static struct crypto_alg *algs[] = {
        NULL,
 };
 
-int __init p8_init(void)
+static int __init p8_init(void)
 {
        int ret = 0;
        struct crypto_alg **alg_it;
@@ -67,7 +67,7 @@ int __init p8_init(void)
        return ret;
 }
 
-void __exit p8_exit(void)
+static void __exit p8_exit(void)
 {
        struct crypto_alg **alg_it;