Skip to content

Commit

Permalink
crypto: algif_rng - fix sparse non static symbol warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Stephan Mueller <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Wei Yongjun authored and herbertx committed Jan 14, 2015
1 parent 48eb369 commit 598de36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/algif_rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 598de36

Please sign in to comment.