summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-29 15:26:48 +0200
committerKees Cook <keescook@chromium.org>2017-10-10 20:45:29 +0200
commit084f5601c357e4ee59cf0712200d3f5c4710ba40 (patch)
treeecbca62d9d787c0c5ebb8cc606b4db543ba85599 /kernel
parentseccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter() (diff)
downloadlinux-084f5601c357e4ee59cf0712200d3f5c4710ba40.tar.xz
linux-084f5601c357e4ee59cf0712200d3f5c4710ba40.zip
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/seccomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index bb3a38005b9c..0ae832e13b97 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -473,7 +473,7 @@ static long seccomp_attach_filter(unsigned int flags,
return 0;
}
-void __get_seccomp_filter(struct seccomp_filter *filter)
+static void __get_seccomp_filter(struct seccomp_filter *filter)
{
/* Reference count is bounded by the number of total processes. */
refcount_inc(&filter->usage);