Commit 864f32a52b53341c54a25953afb5b66ed79a7f76
Committed by
James Morris
1 parent
f5645d3575
Exists in
master
and in
13 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/seccomp.c
... | ... | @@ -293,7 +293,7 @@ |
293 | 293 | * |
294 | 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 | 298 | struct sock_fprog fprog; |
299 | 299 | long ret = -EFAULT; |