seccomp: make function __get_seccomp_filter static
authorColin Ian King <colin.king@canonical.com>
Fri, 29 Sep 2017 13:26:48 +0000 (14:26 +0100)
committerKees Cook <keescook@chromium.org>
Tue, 10 Oct 2017 18:45:29 +0000 (11:45 -0700)
commit084f5601c357e4ee59cf0712200d3f5c4710ba40
treeecbca62d9d787c0c5ebb8cc606b4db543ba85599
parent66a733ea6b611aecf0119514d2dddab5f9d6c01e
seccomp: make function __get_seccomp_filter static

The function __get_seccomp_filter is local to the source and does
not need to be in global scope, so make it static.

Cleans up sparse warning:
symbol '__get_seccomp_filter' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Fixes: 66a733ea6b61 ("seccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter()")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
kernel/seccomp.c