Re: [PATCH bpf v2] selftests/bpf: Fix xdp_synproxy compilation failure in 32-bit arch

From: patchwork-bot+netdevbpf
Date: Fri Nov 11 2022 - 15:40:28 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Fri, 11 Nov 2022 11:08:36 +0800 you wrote:
> 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,
> | ^
>
> [...]

Here is the summary with links:
- [bpf,v2] selftests/bpf: Fix xdp_synproxy compilation failure in 32-bit arch
https://git.kernel.org/bpf/bpf-next/c/e4c9cf0ce8c4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html