mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 15:13:52 +00:00
3615353218
Arnaldo Carvalho de Melo reported build error in libbpf when clang
version 3.8.1-24 (tags/RELEASE_381/final) is used:
libbpf.c:2201:36: error: comparison of constant -22 with expression of
type 'const enum bpf_attach_type' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (section_names[i].attach_type == -EINVAL)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~
1 error generated.
Fix the error by keeping "is_attachable" property of a program in a
separate struct field instead of trying to use attach_type itself.
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
bpf.c | ||
bpf.h | ||
btf.c | ||
btf.h | ||
Build | ||
libbpf_errno.c | ||
libbpf.c | ||
libbpf.h | ||
Makefile | ||
netlink.c | ||
nlattr.c | ||
nlattr.h | ||
str_error.c | ||
str_error.h |