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)
commitfb27dcd2909d32e2219b54636ea212dbde45f985
treed0d5d2998c56f0a3091ba8d6127069387e82a373
parent03bd4773d898783fe3bc321287e4838e515fea92
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