Skip to content

Commit e44e77a

Browse files
YueHaibingherbertx
authored andcommitted
crypto: vmx - Make p8_init and p8_exit static
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent d99324c commit e44e77a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/vmx/vmx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static struct crypto_alg *algs[] = {
4141
NULL,
4242
};
4343

44-
int __init p8_init(void)
44+
static int __init p8_init(void)
4545
{
4646
int ret = 0;
4747
struct crypto_alg **alg_it;
@@ -67,7 +67,7 @@ int __init p8_init(void)
6767
return ret;
6868
}
6969

70-
void __exit p8_exit(void)
70+
static void __exit p8_exit(void)
7171
{
7272
struct crypto_alg **alg_it;
7373

0 commit comments

Comments
 (0)