OSDN Git Service

selftests/bpf: Use __BYTE_ORDER__
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 26 Oct 2021 01:08:28 +0000 (03:08 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 26 Oct 2021 03:39:42 +0000 (20:39 -0700)
commit06fca841fb64c9ed499a3575a530014268d0251a
tree38ba5dab649e7962837e4e620da1ec7a3c192edf
parent3930198dc9a0720a2b6561c67e55859ec51b73f9
selftests/bpf: Use __BYTE_ORDER__

Use the compiler-defined __BYTE_ORDER__ instead of the libc-defined
__BYTE_ORDER for consistency.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211026010831.748682-4-iii@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/btf_endian.c
tools/testing/selftests/bpf/test_sysctl.c
tools/testing/selftests/bpf/verifier/ctx_skb.c
tools/testing/selftests/bpf/verifier/lwt.c
tools/testing/selftests/bpf/verifier/perf_event_sample_period.c