Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Use the 25th bit in the "invalid BTF_INFO" test

The bit being checked by this test is no longer reserved after
introducing BTF_KIND_FLOAT, so use the next one instead.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210226202256.116518-6-iii@linux.ibm.com

authored by

Ilya Leoshkevich and committed by
Alexei Starovoitov
eea154a8 737e0f91

+1 -1
+1 -1
tools/testing/selftests/bpf/prog_tests/btf.c
··· 1903 1903 .raw_types = { 1904 1904 /* int */ /* [1] */ 1905 1905 BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 32, 4), 1906 - BTF_TYPE_ENC(0, 0x10000000, 4), 1906 + BTF_TYPE_ENC(0, 0x20000000, 4), 1907 1907 BTF_END_RAW, 1908 1908 }, 1909 1909 .str_sec = "",