mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
selftests/bpf: Fix btf_dump padding test case
[ Upstream commit76790c7c66
] Existing padding test case for btf_dump has a good test that was supposed to test padding generation at the end of a struct, but its expected output was specified incorrectly. Fix this. Fixes:2d2a3ad872
("selftests/bpf: add btf_dump BTF-to-C conversion tests") Reported-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20191008231009.2991130-4-andriin@fb.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d30249bae5
commit
8ff8178124
1 changed files with 4 additions and 1 deletions
|
@ -62,6 +62,10 @@ struct padded_a_lot {
|
|||
* long: 64;
|
||||
* long: 64;
|
||||
* int b;
|
||||
* long: 32;
|
||||
* long: 64;
|
||||
* long: 64;
|
||||
* long: 64;
|
||||
*};
|
||||
*
|
||||
*/
|
||||
|
@ -95,7 +99,6 @@ struct zone_padding {
|
|||
struct zone {
|
||||
int a;
|
||||
short b;
|
||||
short: 16;
|
||||
struct zone_padding __pad__;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue