From: Colin Ian King Date: Fri, 29 Sep 2017 13:26:48 +0000 (+0100) Subject: seccomp: make function __get_seccomp_filter static X-Git-Tag: v4.14-rc5~35^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=084f5601c357e4ee59cf0712200d3f5c4710ba40;p=platform%2Fkernel%2Flinux-rpi.git 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 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 --- diff --git a/kernel/seccomp.c b/kernel/seccomp.c index bb3a380..0ae832e 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);