Skip to content

Commit

Permalink
ima: sparse fix: make ima_open_policy static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Sep 9, 2011
1 parent cc7db09 commit b97e145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/integrity/ima/ima_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b97e145

Please sign in to comment.