selftests/bpf: Add static to enable_all_controllers()
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Wed, 2 Oct 2019 12:04:03 +0000 (15:04 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 3 Oct 2019 15:21:35 +0000 (17:21 +0200)
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: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20191002120404.26962-2-ivan.khoronzhuk@linaro.org
tools/testing/selftests/bpf/cgroup_helpers.c

index e95c33e333a40ad9c1c439e668c7a8c1d2000f8c..4d74f3c4619b688ea3d6f0cf59906f92f668411f 100644 (file)
@@ -41,7 +41,7 @@
  *
  * 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 buf[PATH_MAX];