Skip to content

Commit b97e145

Browse files
committed
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>
1 parent cc7db09 commit b97e145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/integrity/ima/ima_fs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static atomic_t policy_opencount = ATOMIC_INIT(1);
287287
/*
288288
* ima_open_policy: sequentialize access to the policy file
289289
*/
290-
int ima_open_policy(struct inode * inode, struct file * filp)
290+
static int ima_open_policy(struct inode * inode, struct file * filp)
291291
{
292292
/* No point in being allowed to open it if you aren't going to write */
293293
if (!(filp->f_flags & O_WRONLY))

0 commit comments

Comments
 (0)