Skip to content

Commit a32ad90

Browse files
Austin Kimmimizohar
authored andcommitted
IMA: remove -Wmissing-prototypes warning
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 <austin.kim@lge.com> Fixes: 41c89b6 ("IMA: create machine owner and blacklist keyrings") Cc: stable@vger.kernel.org Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
1 parent 2734d6c commit a32ad90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)