Skip to content

Commit 5cc1ee3

Browse files
Austin Kimgregkh
authored andcommitted
IMA: remove -Wmissing-prototypes warning
commit a32ad90 upstream. With W=1 build, the compiler throws warning message as below: security/integrity/ima/ima_mok.c:24:12: warning: no previous prototype for ‘ima_mok_init’ [-Wmissing-prototypes] __init int ima_mok_init(void) Silence the warning by adding static keyword to ima_mok_init(). Signed-off-by: Austin Kim <[email protected]> Fixes: 41c89b6 ("IMA: create machine owner and blacklist keyrings") Cc: [email protected] Signed-off-by: Mimi Zohar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1319689 commit 5cc1ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/integrity/ima/ima_mok.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct key *ima_blacklist_keyring;
2121
/*
2222
* Allocate the IMA blacklist keyring
2323
*/
24-
__init int ima_mok_init(void)
24+
static __init int ima_mok_init(void)
2525
{
2626
struct key_restriction *restriction;
2727

0 commit comments

Comments
 (0)