diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-02-27 07:20:19 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-02-27 21:54:27 -0500 |
commit | 864f32a52b53341c54a25953afb5b66ed79a7f76 (patch) | |
tree | 0dee208574ba62641125385c827eed3c885b938d /kernel/seccomp.c | |
parent | f5645d3575fe9a2c468889146e152f11c199826e (diff) |
kernel: Mark function as static in kernel/seccomp.c
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>
Diffstat (limited to 'kernel/seccomp.c')
-rw-r--r-- | kernel/seccomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c index b7a10048a32c..0e004a70f63a 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c | |||
@@ -293,7 +293,7 @@ fail: | |||
293 | * | 293 | * |
294 | * Returns 0 on success and non-zero otherwise. | 294 | * Returns 0 on success and non-zero otherwise. |
295 | */ | 295 | */ |
296 | long seccomp_attach_user_filter(char __user *user_filter) | 296 | static long seccomp_attach_user_filter(char __user *user_filter) |
297 | { | 297 | { |
298 | struct sock_fprog fprog; | 298 | struct sock_fprog fprog; |
299 | long ret = -EFAULT; | 299 | long ret = -EFAULT; |