bpf: Refactor ARRAY_SIZE macro to bpf_util.h
authorMartin KaFai Lau <kafai@fb.com>
Wed, 8 Aug 2018 08:01:27 +0000 (01:01 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Aug 2018 23:58:46 +0000 (01:58 +0200)
commitaa5f0c96cc7b96a678779055b2ff4cd9dabd8ba7
tree3f842ab7be06a1846f5332821006bf6d892ddedf
parent8217ca653ec601246832d562207bc24bdf652d2f
bpf: Refactor ARRAY_SIZE macro to bpf_util.h

This patch refactors the ARRAY_SIZE macro to bpf_util.h.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/bpf_util.h
tools/testing/selftests/bpf/test_align.c
tools/testing/selftests/bpf/test_btf.c
tools/testing/selftests/bpf/test_sock.c
tools/testing/selftests/bpf/test_sock_addr.c
tools/testing/selftests/bpf/test_verifier.c