Skip to contentSkip to conversation

seccomp: make function __get_seccomp_filter static

PATCH New Colin King 1 participant 1 message Sep 29, 2017

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 seccomp: make function __get_seccomp_filter static

From: Colin Ian King <[email protected]>

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?

---
 kernel/seccomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/seccomp.c +1 -1
index bb3a38005b9c..0ae832e13b97 100644
@@ -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);
Signature · 1 line
2.14.1