summaryrefslogtreecommitdiff
path: root/kernel/bpf
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-08-18 09:44:56 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-08-18 10:02:52 -0700
commit3fb1a96a91120877488071a167d26d76be4be977 (patch)
treebe7f1711c23b8fab9b1b0acd22b2e12bc542c35e /kernel/bpf
parentcf28f3bbfca097d956f9021cb710dfad56adcc62 (diff)
libbpf: Fix build on ppc64le architecture
On ppc64le we get the following warning: In file included from btf_dump.c:16:0: btf_dump.c: In function ‘btf_dump_emit_struct_def’: ../include/linux/kernel.h:20:17: error: comparison of distinct pointer types lacks a cast [-Werror] (void) (&_max1 == &_max2); \ ^ btf_dump.c:882:11: note: in expansion of macro ‘max’ m_sz = max(0LL, btf__resolve_size(d->btf, m->type)); ^~~ Fix by explicitly casting to __s64, which is a return type from btf__resolve_size(). Fixes: 702eddc77a90 ("libbpf: Handle GCC built-in types for Arm NEON") Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200818164456.1181661-1-andriin@fb.com
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions