Re: [PATCH bpf-next] bpf: Fix unused nskb warning in bpf_icmp_send

From: Kumar Kartikeya Dwivedi

Date: Fri Jul 10 2026 - 15:49:19 EST


On Fri Jul 10, 2026 at 8:09 PM CEST, Mahe Tardy wrote:
> Declare nskb inside the IPv4 and IPv6 case blocks so it is only present
> when the corresponding code is built. The case braces are intentional to
> scope the local declarations under the switch labels.
>
> Fixes: f3603df9aebb ("bpf: Add bpf_icmp_send kfunc")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202607110140.JeJZ6GIa-lkp@xxxxxxxxx/
> Signed-off-by: Mahe Tardy <mahe.tardy@xxxxxxxxx>
> ---

pw-bot is asleep, applied.