summaryrefslogtreecommitdiff
path: root/security/integrity/ima/ima_fs.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2011-08-30 10:18:30 +1000
committerJames Morris <jmorris@namei.org>2011-09-09 16:56:29 -0700
commitb97e14520207dccb5cdf93f322e571bf907df104 (patch)
tree1757e5541378136752d608ecde87e1c7251afbb0 /security/integrity/ima/ima_fs.c
parentcc7db09952faefc86187c67c4adf5cbdb6fe2c1b (diff)
downloadlwn-b97e14520207dccb5cdf93f322e571bf907df104.tar.gz
lwn-b97e14520207dccb5cdf93f322e571bf907df104.zip
ima: sparse fix: make ima_open_policy static
Fixes sparse warning: security/integrity/ima/ima_fs.c:290:5: warning: symbol 'ima_open_policy' was not declared. Should it be static? Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/integrity/ima/ima_fs.c')
-rw-r--r--security/integrity/ima/ima_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_fs.c b/security/integrity/ima/ima_fs.c
index ef21b96a0b42..e1aa2b482dd2 100644
--- a/security/integrity/ima/ima_fs.c
+++ b/security/integrity/ima/ima_fs.c
@@ -287,7 +287,7 @@ static atomic_t policy_opencount = ATOMIC_INIT(1);
/*
* ima_open_policy: sequentialize access to the policy file
*/
-int ima_open_policy(struct inode * inode, struct file * filp)
+static int ima_open_policy(struct inode * inode, struct file * filp)
{
/* No point in being allowed to open it if you aren't going to write */
if (!(filp->f_flags & O_WRONLY))