diff options
| author | Yang Jihong <[email protected]> | 2022-11-11 03:08:36 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-11-11 20:22:21 +0000 |
| commit | e4c9cf0ce8c413c2030e8fb215551d7e0582ee7b (patch) | |
| tree | d13e32ec74211e1b074f81d278c7ad7cd3e24663 /tools/testing/selftests/bpf/prog_tests | |
| parent | bpf, docs: Document BPF_MAP_TYPE_ARRAY (diff) | |
| download | kernel-e4c9cf0ce8c413c2030e8fb215551d7e0582ee7b.tar.gz kernel-e4c9cf0ce8c413c2030e8fb215551d7e0582ee7b.zip | |
selftests/bpf: Fix xdp_synproxy compilation failure in 32-bit arch
xdp_synproxy fails to be compiled in the 32-bit arch, log is as follows:
xdp_synproxy.c: In function 'parse_options':
xdp_synproxy.c:175:36: error: left shift count >= width of type [-Werror=shift-count-overflow]
175 | *tcpipopts = (mss6 << 32) | (ttl << 24) | (wscale << 16) | mss4;
| ^~
xdp_synproxy.c: In function 'syncookie_open_bpf_maps':
xdp_synproxy.c:289:28: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
289 | .map_ids = (__u64)map_ids,
| ^
Fix it.
Fixes: fb5cd0ce70d4 ("selftests/bpf: Add selftests for raw syncookie helpers")
Signed-off-by: Yang Jihong <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions
