All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next] Squash to "mptcp: add mptcp_subflow_ctx_by_pos helper"
@ 2023-06-14  3:34 Geliang Tang
  2023-06-14  4:43 ` Squash to "mptcp: add mptcp_subflow_ctx_by_pos helper": Tests Results MPTCP CI
  0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2023-06-14  3:34 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang

Move this block from 'Squash to "mptcp: add scheduler wrappers"' into
'mptcp: add mptcp_subflow_ctx_by_pos helper' to fix the following error
reported by CI:

  net/mptcp/sched.c: In function 'mptcp_subflow_ctx_by_pos':
  net/mptcp/sched.c:122:19: error: 'const struct mptcp_sock' has no member named 'sched_data'
    122 |         return msk->sched_data.contexts[pos];
        |                   ^~
  net/mptcp/sched.c:123:1: error: control reaches end of non-void function [-Werror=return-type]
    123 | }
        | ^

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 net/mptcp/protocol.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index 4e42f52596d4..bda91399be49 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -314,6 +314,7 @@ struct mptcp_sock {
 				   */
 	struct sock	*first;
 	struct mptcp_pm_data	pm;
+	struct mptcp_sched_data sched_data;
 	struct mptcp_sched_ops	*sched;
 	struct {
 		u32	space;	/* bytes copied in last measurement window */
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-14  4:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-14  3:34 [PATCH mptcp-next] Squash to "mptcp: add mptcp_subflow_ctx_by_pos helper" Geliang Tang
2023-06-14  4:43 ` Squash to "mptcp: add mptcp_subflow_ctx_by_pos helper": Tests Results MPTCP CI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.