Re: [PATCH bpf] selftests/bpf: Fix broken build where char is unsigned
From: patchwork-bot+netdevbpf
Date: Thu Nov 02 2023 - 11:00:28 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Thu, 2 Nov 2023 11:35:37 +0100 you wrote:
> From: Björn Töpel <bjorn@xxxxxxxxxxxx>
>
> There are architectures where char is not signed. If so, the following
> error is triggered:
>
> | xdp_hw_metadata.c:435:42: error: result of comparison of constant -1 \
> | with expression of type 'char' is always true \
> | [-Werror,-Wtautological-constant-out-of-range-compare]
> | 435 | while ((opt = getopt(argc, argv, "mh")) != -1) {
> | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
> | 1 error generated.
>
> [...]
Here is the summary with links:
- [bpf] selftests/bpf: Fix broken build where char is unsigned
https://git.kernel.org/bpf/bpf/c/d84b139f53e8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html