crypto: algif_rng - fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 14 Jan 2015 01:14:41 +0000 (09:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Jan 2015 10:57:57 +0000 (21:57 +1100)
Fixes the following sparse warnings:

crypto/algif_rng.c:185:13: warning:
 symbol 'rng_exit' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Stephan Mueller <smueller@chronox.de>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_rng.c

index 91c06f5..67f612c 100644 (file)
@@ -182,7 +182,7 @@ static int __init rng_init(void)
        return af_alg_register_type(&algif_type_rng);
 }
 
-void __exit rng_exit(void)
+static void __exit rng_exit(void)
 {
        int err = af_alg_unregister_type(&algif_type_rng);
        BUG_ON(err);