]> Git Repo - linux.git/commitdiff
selinux: ioctl_has_perm should be static
authorGeliang Tang <[email protected]>
Wed, 21 Oct 2015 21:44:27 +0000 (17:44 -0400)
committerPaul Moore <[email protected]>
Wed, 21 Oct 2015 21:44:27 +0000 (17:44 -0400)
Fixes the following sparse warning:

 security/selinux/hooks.c:3242:5: warning: symbol 'ioctl_has_perm' was
 not declared. Should it be static?

Signed-off-by: Geliang Tang <[email protected]>
Acked-by: Jeff Vander Stoep <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
security/selinux/hooks.c

index 1530f661ef8576d6ce38931c4ab7cca38a343eb4..799d15aa35f9d6b0df95caaa960d1d02d2a5377a 100644 (file)
@@ -3235,7 +3235,7 @@ static void selinux_file_free_security(struct file *file)
  * Check whether a task has the ioctl permission and cmd
  * operation to an inode.
  */
-int ioctl_has_perm(const struct cred *cred, struct file *file,
+static int ioctl_has_perm(const struct cred *cred, struct file *file,
                u32 requested, u16 cmd)
 {
        struct common_audit_data ad;
This page took 0.074704 seconds and 4 git commands to generate.