]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp, btf: Add struct mptcp_sock definition when CONFIG_MPTCP is disabled
authorJiri Olsa <jolsa@kernel.org>
Tue, 2 Aug 2022 16:33:24 +0000 (18:33 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Aug 2022 13:30:45 +0000 (15:30 +0200)
commitbb845057f241120a0c5352814c3d400175290312
tree7adc30bcf845776cc24bec14389a369b38628322
parent24184b1b51d70d58225538927ba2280ad7d5fff0
mptcp, btf: Add struct mptcp_sock definition when CONFIG_MPTCP is disabled

The btf_sock_ids array needs struct mptcp_sock BTF ID for the
bpf_skc_to_mptcp_sock helper.

When CONFIG_MPTCP is disabled, the 'struct mptcp_sock' is not
defined and resolve_btfids will complain with:

  [...]
  BTFIDS  vmlinux
  WARN: resolve_btfids: unresolved symbol mptcp_sock
  [...]

Add an empty definition for struct mptcp_sock when CONFIG_MPTCP
is disabled.

Fixes: d1937de37f99 ("bpf: Add bpf_skc_to_mptcp_sock_proto")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20220802163324.1873044-1-jolsa@kernel.org
include/net/mptcp.h