veristat: avoid using kernel-internal headers
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 31 Mar 2023 22:24:04 +0000 (15:24 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 1 Apr 2023 16:05:57 +0000 (09:05 -0700)
commite3b65c0c1a5b8ed06818b7eeb0c44165ea817d52
tree382f49a3d48a7929627a6c7e089063a47f5c6102
parent71c8c39f517787af19d9f35fe60463f7eec914e1
veristat: avoid using kernel-internal headers

Drop linux/compiler.h include, which seems to be needed for ARRAY_SIZE
macro only. Redefine own version of ARRAY_SIZE instead.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230331222405.3468634-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/veristat.c