selftests/bpf: Add GCC compatible builtins to bpf_legacy.h
authorJames Hilliard <james.hilliard1@gmail.com>
Thu, 1 Dec 2022 19:09:39 +0000 (12:09 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Sat, 3 Dec 2022 00:22:28 +0000 (16:22 -0800)
commitf16a7aa5c2be3134d3b72078b94f36d639552888
treea25aebdc0c1af08796502ae6290b7082155399a9
parentbc067cacb69c6ee0da10d357458fa7f1fe54e472
selftests/bpf: Add GCC compatible builtins to bpf_legacy.h

The bpf_legacy.h header uses llvm specific load functions, add
GCC compatible variants as well to fix tests using these functions
under GCC.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20221201190939.3230513-1-james.hilliard1@gmail.com
tools/testing/selftests/bpf/bpf_legacy.h