Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1742114 > unrolled thread

[PATCH] seccomp: make function __get_seccomp_filter static

Started byColin King <colin.king@canonical.com>
First post2017-09-29 15:30 +0200
Last post2017-09-29 15:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] seccomp: make function __get_seccomp_filter static Colin King <colin.king@canonical.com> - 2017-09-29 15:30 +0200

#1742114 — [PATCH] seccomp: make function __get_seccomp_filter static

FromColin King <colin.king@canonical.com>
Date2017-09-29 15:30 +0200
Subject[PATCH] seccomp: make function __get_seccomp_filter static
Message-ID<uv3wD-6Hg-35@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

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>
---
 kernel/seccomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.14.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web