]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ca3a4785d7a1d415781185d7a326687da942c36
treed0d5d2998c56f0a3091ba8d6127069387e82a373
parent326782a3ef4005d6902b91f30f71f0922d46dbab
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: 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