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 <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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1319689 commit 5cc1ee3

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)