Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 864f32a5 authored by Rashika Kheria's avatar Rashika Kheria Committed by James Morris
Browse files

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: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarWill Drewry <wad@chromium.org>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent f5645d35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ static long seccomp_attach_filter(struct sock_fprog *fprog)
 *
 * 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;