Re: [PATCH] selftests: net: tcp_ao: don't shift a size_t by 32
From: patchwork-bot+netdevbpf
Date: Fri Nov 06 2026 - 17:51:38 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 3 Nov 2026 11:39:21 -0500 you wrote:
> gen_tcp_addr() shifts the size_t n right by 32 and masks it with BIT(32)
> - 1. On 32-bit architectures both shifts are as wide as the type, which
> is undefined:
>
> aolib.h:230:40: warning: right shift count >= width of type [-Wshift-count-overflow]
>
> Convert n to uint64_t first and mask with 0xffffffff.
>
> [...]
Here is the summary with links:
- selftests: net: tcp_ao: don't shift a size_t by 32
https://git.kernel.org/netdev/net-next/c/dc8410e0aad5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html