summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2011-08-30 10:19:50 +1000
committerJames Morris <jmorris@namei.org>2011-09-09 16:56:30 -0700
commitd5813a571876c72766f125b1c6e63414f6822c28 (patch)
treefe688a7aa64fa890741e5a87800a3f95ddcaaee6
parentb97e14520207dccb5cdf93f322e571bf907df104 (diff)
downloadop-kernel-dev-d5813a571876c72766f125b1c6e63414f6822c28.zip
op-kernel-dev-d5813a571876c72766f125b1c6e63414f6822c28.tar.gz
ima: sparse fix: include linux/ima.h in ima_main.c
Fixes sparse warnings: security/integrity/ima/ima_main.c:105:6: warning: symbol 'ima_file_free' was not declared. Should it be static? security/integrity/ima/ima_main.c:167:5: warning: symbol 'ima_file_mmap' was not declared. Should it be static? security/integrity/ima/ima_main.c:192:5: warning: symbol 'ima_bprm_check' was not declared. Should it be static? security/integrity/ima/ima_main.c:211:5: warning: symbol 'ima_file_check' was not declared. Should it be static? Signed-off-by: James Morris <jmorris@namei.org>
-rw-r--r--security/integrity/ima/ima_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c
index 42dc270..1eff5cb 100644
--- a/security/integrity/ima/ima_main.c
+++ b/security/integrity/ima/ima_main.c
@@ -22,6 +22,7 @@
#include <linux/mount.h>
#include <linux/mman.h>
#include <linux/slab.h>
+#include <linux/ima.h>
#include "ima.h"
OpenPOWER on IntegriCloud