[PATCH bpf-next] powerpc/bpf: Fix warning for unused ori31_emitted
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Fri Jun 20 03:00:08 AEST 2025
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast at kernel.org>:
On Thu, 19 Jun 2025 16:26:47 +0200 you wrote:
> Without this, the compiler (clang21) might emit a warning under W=1
> because the variable ori31_emitted is set but never used if
> CONFIG_PPC_BOOK3S_64=n.
>
> Without this patch:
>
> $ make -j $(nproc) W=1 ARCH=powerpc SHELL=/bin/bash arch/powerpc/net
> [...]
> CC arch/powerpc/net/bpf_jit_comp.o
> CC arch/powerpc/net/bpf_jit_comp64.o
> ../arch/powerpc/net/bpf_jit_comp64.c: In function 'bpf_jit_build_body':
> ../arch/powerpc/net/bpf_jit_comp64.c:417:28: warning: variable 'ori31_emitted' set but not used [-Wunused-but-set-variable]
> 417 | bool sync_emitted, ori31_emitted;
> | ^~~~~~~~~~~~~
> AR arch/powerpc/net/built-in.a
>
> [...]
Here is the summary with links:
- [bpf-next] powerpc/bpf: Fix warning for unused ori31_emitted
https://git.kernel.org/bpf/bpf-next/c/e30329b8a647
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the Linuxppc-dev
mailing list