From: Colin Ian King Date: Wed, 20 Jan 2016 11:13:46 +0000 (+0000) Subject: IMA: fix non-ANSI declaration of ima_check_policy() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c75d8e96f377b59b887a81b31adb00dd1957c3c8;p=linux-beck.git IMA: fix non-ANSI declaration of ima_check_policy() ima_check_policy() has no parameters, so use the normal void parameter convention to make it match the prototype in the header file security/integrity/ima/ima.h Signed-off-by: Colin Ian King Signed-off-by: Mimi Zohar --- diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c index 0a3b781f18e5..e0e18cc5930a 100644 --- a/security/integrity/ima/ima_policy.c +++ b/security/integrity/ima/ima_policy.c @@ -417,7 +417,7 @@ void __init ima_init_policy(void) } /* Make sure we have a valid policy, at least containing some rules. */ -int ima_check_policy() +int ima_check_policy(void) { if (list_empty(&ima_temp_rules)) return -EINVAL;