kernel: Mark function as static in kernel/seccomp.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 27 Feb 2014 12:20:19 +0000 (17:50 +0530)
committerJames Morris <james.l.morris@oracle.com>
Fri, 28 Feb 2014 02:54:27 +0000 (13:54 +1100)
Mark function as static in kernel/seccomp.c because it is not used
outside this file.

This eliminates the following warning in kernel/seccomp.c:
kernel/seccomp.c:296:6: warning: no previous prototype for ?seccomp_attach_user_filter? [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Will Drewry <wad@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
kernel/seccomp.c

index b7a1004..0e004a7 100644 (file)
@@ -293,7 +293,7 @@ fail:
  *
  * Returns 0 on success and non-zero otherwise.
  */
-long seccomp_attach_user_filter(char __user *user_filter)
+static long seccomp_attach_user_filter(char __user *user_filter)
 {
        struct sock_fprog fprog;
        long ret = -EFAULT;