]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix the use of aligned attribute
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Oct 2021 19:25:02 +0000 (12:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Oct 2021 21:24:36 +0000 (14:24 -0700)
commitc796b52e0fc1ef40f49280b43a74bf39058cc8bf
tree085a0f6556cf90027c9e99da955ccb20b511170f
parentd73c9772856238356d0f313165c757dd9b5115cf
libbpf: Fix the use of aligned attribute

Building libbpf sources out of kernel tree (in Github repo) we run into
compilation error due to unknown __aligned attribute. It must be coming
from some kernel header, which is not available to Github sources. Use
explicit __attribute__((aligned(16))) instead.

Fixes: 067e5a611051 ("libbpf: Fix dumping non-aligned __int128")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211022192502.2975553-1-andrii@kernel.org
tools/lib/bpf/btf_dump.c