Re: Linux 6.19-rc1
From: Alexei Starovoitov
Date: Mon Dec 15 2025 - 11:23:35 EST
On Mon, Dec 15, 2025 at 6:56 AM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> Error log:
> In file included from include/linux/bpf_verifier.h:7,
> from net/smc/smc_hs_bpf.c:13:
> net/smc/smc_hs_bpf.c: In function 'bpf_smc_hs_ctrl_init':
> include/linux/bpf.h:2068:50: error: statement with no effect [-Werror=unused-value]
> 2068 | #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; })
> | ^~~~~~~~~~~~~~~~
> net/smc/smc_hs_bpf.c:139:16: note: in expansion of macro 'register_bpf_struct_ops'
> 139 | return register_bpf_struct_ops(&bpf_smc_hs_ctrl_ops, smc_hs_ctrl);
>
> Introduced by commit 15f295f55656 ("net/smc: bpf: Introduce generic hook for
> handshake flow").
fyi the fix for this one is already in the bpf tree.