diff options
| author | Jose E. Marchesi <[email protected]> | 2024-05-08 11:03:32 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-05-08 16:56:59 +0000 |
| commit | 911edc69c832161b62a8ad10a6972290157a7bd3 (patch) | |
| tree | 6cb2526411487c32f0356fe940e1d96e1ab69187 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c | |
| parent | bpf: avoid UB in usages of the __imm_insn macro (diff) | |
| download | kernel-911edc69c832161b62a8ad10a6972290157a7bd3.tar.gz kernel-911edc69c832161b62a8ad10a6972290157a7bd3.zip | |
bpf: guard BPF_NO_PRESERVE_ACCESS_INDEX in skb_pkt_end.c
This little patch is a follow-up to:
https://lore.kernel.org/bpf/[email protected]/T/#u
The temporary workaround of passing -DBPF_NO_PRESERVE_ACCESS_INDEX
when building with GCC triggers a redefinition preprocessor error when
building progs/skb_pkt_end.c. This patch adds a guard to avoid
redefinition.
Signed-off-by: Jose E. Marchesi <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Eduard Zingerman <[email protected]>
Cc: Yonghong Song <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions
