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-Tag: v4.6-rc1~127^2~5^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c75d8e96f377b59b887a81b31adb00dd1957c3c8;p=platform%2Fkernel%2Flinux-exynos.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 0a3b781..e0e18cc 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;