ima: Include header defining ima_post_key_create_or_update()
authorRoberto Sassu <roberto.sassu@huawei.com>
Tue, 8 Jun 2021 12:31:23 +0000 (14:31 +0200)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 8 Jun 2021 20:29:10 +0000 (16:29 -0400)
This patch fixes the sparse warning for ima_post_key_create_or_update() by
adding the header file that defines the prototype (linux/ima.h).

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_asymmetric_keys.c

index 1fb0b0e..c985418 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <keys/asymmetric-type.h>
 #include <linux/user_namespace.h>
+#include <linux/ima.h>
 #include "ima.h"
 
 /**