summaryrefslogtreecommitdiff
path: root/tools/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2021-10-21 13:46:58 +0300
committerAndrii Nakryiko <andrii@kernel.org>2021-10-22 01:50:04 +0300
commit632f96d2652e0d4188de837f88a977eedb55aee1 (patch)
treeb5fa2fd6b0bde0c5dfa561194a57cb799f4196b9 /tools/include/uapi/linux/bpf.h
parent549beec028ad05ab911a584e9da3c51288544528 (diff)
downloadlinux-632f96d2652e0d4188de837f88a977eedb55aee1.tar.xz
libbpf: Fix ptr_is_aligned() usages
Currently ptr_is_aligned() takes size, and not alignment, as a parameter, which may be overly pessimistic e.g. for __i128 on s390, which must be only 8-byte aligned. Fix by using btf__align_of(). Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211021104658.624944-2-iii@linux.ibm.com
Diffstat (limited to 'tools/include/uapi/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions