diff options
Diffstat (limited to 'tools/testing/selftests/bpf/test_btf.c')
-rw-r--r-- | tools/testing/selftests/bpf/test_btf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/testing/selftests/bpf/test_btf.c b/tools/testing/selftests/bpf/test_btf.c index a0bd04befe87..91420fa83b08 100644 --- a/tools/testing/selftests/bpf/test_btf.c +++ b/tools/testing/selftests/bpf/test_btf.c | |||
@@ -1881,13 +1881,12 @@ static struct btf_raw_test raw_tests[] = { | |||
1881 | }, | 1881 | }, |
1882 | 1882 | ||
1883 | { | 1883 | { |
1884 | .descr = "func proto (CONST=>TYPEDEF=>FUNC_PROTO)", | 1884 | .descr = "func proto (TYPEDEF=>FUNC_PROTO)", |
1885 | .raw_types = { | 1885 | .raw_types = { |
1886 | BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 32, 4), /* [1] */ | 1886 | BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 32, 4), /* [1] */ |
1887 | BTF_TYPE_INT_ENC(0, 0, 0, 32, 4), /* [2] */ | 1887 | BTF_TYPE_INT_ENC(0, 0, 0, 32, 4), /* [2] */ |
1888 | BTF_CONST_ENC(4), /* [3] */ | 1888 | BTF_TYPEDEF_ENC(NAME_TBD, 4), /* [3] */ |
1889 | BTF_TYPEDEF_ENC(NAME_TBD, 5), /* [4] */ | 1889 | BTF_FUNC_PROTO_ENC(0, 2), /* [4] */ |
1890 | BTF_FUNC_PROTO_ENC(0, 2), /* [5] */ | ||
1891 | BTF_FUNC_PROTO_ARG_ENC(0, 1), | 1890 | BTF_FUNC_PROTO_ARG_ENC(0, 1), |
1892 | BTF_FUNC_PROTO_ARG_ENC(0, 2), | 1891 | BTF_FUNC_PROTO_ARG_ENC(0, 2), |
1893 | BTF_END_RAW, | 1892 | BTF_END_RAW, |
@@ -1901,8 +1900,6 @@ static struct btf_raw_test raw_tests[] = { | |||
1901 | .key_type_id = 1, | 1900 | .key_type_id = 1, |
1902 | .value_type_id = 1, | 1901 | .value_type_id = 1, |
1903 | .max_entries = 4, | 1902 | .max_entries = 4, |
1904 | .btf_load_err = true, | ||
1905 | .err_str = "Invalid type_id", | ||
1906 | }, | 1903 | }, |
1907 | 1904 | ||
1908 | { | 1905 | { |