mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
selftests/bpf: Test btf dump for struct with padding only fields
[ Upstream commitd503f1176b] Structures with zero regular fields but some padding constitute a special case in btf_dump.c:btf_dump_emit_struct_def with regards to newline before closing '}'. Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221001104425.415768-2-eddyz87@gmail.com Stable-dep-of:ea2ce1ba99("libbpf: Fix BTF-to-C converter's padding logic") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0f9e728e1a
commit
2e35b08b66
1 changed files with 9 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue