diff options
author | Yucong Sun <sunyucong@gmail.com> | 2021-10-08 10:31:39 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-08 11:08:11 -0700 |
commit | 7e3cbd3405cb7b6c036b8984baa694bc55c08e46 (patch) | |
tree | 6c825455c4d11cce87caadd9c967e88717d02eca /tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c | |
parent | dd65acf72d0e073970459d5da80573a04304aaa9 (diff) | |
download | linux-7e3cbd3405cb7b6c036b8984baa694bc55c08e46.tar.gz linux-7e3cbd3405cb7b6c036b8984baa694bc55c08e46.tar.bz2 linux-7e3cbd3405cb7b6c036b8984baa694bc55c08e46.zip |
selftests/bpf: Fix btf_dump test under new clang
New clang version changed ([0]) type name in dwarf from "long int" to "long",
this is causing btf_dump tests to fail.
[0] https://github.com/llvm/llvm-project/commit/f6a561c4d6754b13165a49990e8365d819f64c86
Signed-off-by: Yucong Sun <sunyucong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211008173139.1457407-1-fallentree@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c b/tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c index 8f44767a75fa..e5560a656030 100644 --- a/tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c +++ b/tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c @@ -11,7 +11,7 @@ /* *struct bitfields_only_mixed_types { * int a: 3; - * long int b: 2; + * long b: 2; * _Bool c: 1; * enum { * A = 0, @@ -27,7 +27,7 @@ struct bitfields_only_mixed_types { int a: 3; - long int b: 2; + long b: 2; bool c: 1; /* it's really a _Bool type */ enum { A, /* A = 0, dumper is very explicit */ @@ -44,8 +44,8 @@ struct bitfields_only_mixed_types { * char: 4; * int a: 4; * short b; - * long int c; - * long int d: 8; + * long c; + * long d: 8; * int e; * int f; *}; @@ -71,7 +71,7 @@ struct bitfield_mixed_with_others { *struct bitfield_flushed { * int a: 4; * long: 60; - * long int b: 16; + * long b: 16; *}; * */ |