diff options
| author | Song Liu <[email protected]> | 2020-05-04 17:36:26 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-05-10 01:01:33 +0000 |
| commit | b4563facdcae55c83039d5efcc3b45a63da14d2f (patch) | |
| tree | 2360ace1000f2787c6c75de7377bb7a7e092055b /tools/bpf/bpftool/prog.c | |
| parent | Merge branch 'bpf_iter' (diff) | |
| download | kernel-b4563facdcae55c83039d5efcc3b45a63da14d2f.tar.gz kernel-b4563facdcae55c83039d5efcc3b45a63da14d2f.zip | |
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 <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
