aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-12-19 11:15:26 -0800
committerAndrii Nakryiko <andrii@kernel.org>2022-12-20 15:55:14 -0800
commit1520e8466d683b6c5e1aa53aa65165ebd5da46cf (patch)
tree7654b3e5333aaf769be4ba0f5cd3d3e872171ffc /scripts/objdiff
parentdocs: BPF_MAP_TYPE_SOCK[MAP|HASH] (diff)
downloadlinux-1520e8466d683b6c5e1aa53aa65165ebd5da46cf.tar.gz
linux-1520e8466d683b6c5e1aa53aa65165ebd5da46cf.zip
libbpf: Fix build warning on ref_ctr_off for 32-bit architectures
Clang warns on 32-bit ARM on this comparision: libbpf.c:10497:18: error: result of comparison of constant 4294967296 with expression of type 'size_t' (aka 'unsigned int') is always false [-Werror,-Wtautological-constant-out-of-range-compare] if (ref_ctr_off >= (1ULL << PERF_UPROBE_REF_CTR_OFFSET_BITS)) ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Typecast ref_ctr_off to __u64 in the check conditional, it is false on 32bit anyways. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221219191526.296264-1-raj.khem@gmail.com
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions