bpf: tcp: Remove comma which is causing build error
Subsystems (3)
PATCH 1/1 bpf: tcp: Remove comma which is causing build error
Currently, building the bpf-next source with the CONFIG_BPF_SYSCALL enabled is causing a compilation error:
"net/ipv4/bpf_tcp_ca.c:209:28: error: expected identifier or '(' before ',' token"
Fix this by removing an unnecessary comma.
Reported-by [email protected]
Fixes e78aea8b2170 ("bpf: tcp: Put some tcp cong functions in allowlist for bpf-tcp-cc")
Signed-off-by Atul Gopinathan <[email protected]>
--- net/ipv4/bpf_tcp_ca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/bpf_tcp_ca.c +1 -1
@@ -202,15 +202,15 @@ BTF_ID(func, dctcp_cwnd_undo) BTF_ID(func, dctcp_state)#endif #if IS_BUILTIN (CONFIG_TCP_CONG_BBR ) BTF_ID(func, bbr_init) BTF_ID(func, bbr_main) BTF_ID(func, bbr_sndbuf_expand) BTF_ID(func, bbr_undo_cwnd) -BTF_ID (func, bbr_cwnd_even), +BTF_ID(func, bbr_cwnd_even) BTF_ID(func, bbr_ssthresh) BTF_ID(func, bbr_min_tso_segs) BTF_ID(func, bbr_set_state)#endif BTF_SET_END (bpf_tcp_ca_kfunc_ids) static bool bpf_tcp_ca_check_kfunc_call(u32 kfunc_btf_id)
Signature · 6 lines
2.25.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 4 lines · Atul Gopinathan
Currently, building the bpf-next source with the
CONFIG_BPF_SYSCALLenabled is causing a compilation error:
Quoted 8 lines
"
net/ipv4/bpf_tcp_ca.c:209:28: error: expected identifier or '(' before ',' token"Fix this by removing an unnecessary comma.
Reported-by [email protected]Fixes e78aea8b2170 ("bpf: tcp: Put some tcp cong functions in allowlist for bpf-tcp-cc")Signed-off-by Atul Gopinathan <[email protected]>
Thanks for the quick fix. Applied.
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees