]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, runqslower: include proper uapi/bpf.h
authorSong Liu <songliubraving@fb.com>
Mon, 4 May 2020 17:36:26 +0000 (10:36 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 10 May 2020 01:01:33 +0000 (18:01 -0700)
commitc3b1b55555e790a598c5fcd594db8fde9a8e67df
tree2360ace1000f2787c6c75de7377bb7a7e092055b
parent6c8c72c74559b57ad8c00f47eda98e7215422b3d
bpf, runqslower: include proper uapi/bpf.h

runqslower doesn't specify include path for uapi/bpf.h. This causes the
following warning:

In file included from runqslower.c:10:
.../tools/testing/selftests/bpf/tools/include/bpf/bpf.h:234:38:
warning: 'enum bpf_stats_type' declared inside parameter list will not
be visible outside of this definition or declaration
  234 | LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type);

Fix this by adding -I tools/includ/uapi to the Makefile.

Reported-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Song Liu <songliubraving@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/runqslower/Makefile