Re: [PATCH bpf-next 1/2] selftests/bpf: add static to enable_all_controllers()

From: Song Liu
Date: Wed Oct 02 2019 - 12:27:02 EST




> On Oct 2, 2019, at 5:04 AM, Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx> wrote:
>
> Add static to enable_all_controllers() to get rid from annoying warn:
>
> 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)
>
> while samples/bpf build.
>
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>