Commit fb27dcd2 authored by Ivan Khoronzhuk's avatar Ivan Khoronzhuk Committed by Daniel Borkmann

selftests/bpf: Add static to enable_all_controllers()

Add static to enable_all_controllers() to get rid from annoying warning
during samples/bpf build:

samples/bpf/../../tools/testing/selftests/bpf/cgroup_helpers.c:44:5:
warning: no previous prototype for ‘enable_all_controllers’
[-Wmissing-prototypes]
 int enable_all_controllers(char *cgroup_path)
Signed-off-by: default avatarIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20191002120404.26962-2-ivan.khoronzhuk@linaro.org
parent 03bd4773
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
* *
* If successful, 0 is returned. * If successful, 0 is returned.
*/ */
int enable_all_controllers(char *cgroup_path) static int enable_all_controllers(char *cgroup_path)
{ {
char path[PATH_MAX + 1]; char path[PATH_MAX + 1];
char buf[PATH_MAX]; char buf[PATH_MAX];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment