All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
@ 2023-02-23  3:37 Geliang Tang
  2023-02-23  5:13 ` mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results MPTCP CI
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Geliang Tang @ 2023-02-23  3:37 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang

Add __ro_after_init labels for the variables tcp_prot_override and
tcpv6_prot_override, just like other variables adjacent to them, to
indicate that they are initialised from the init hoos and no writes
occur afterwards.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 net/mptcp/subflow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index d3e00a428c7e..3a71b3b05935 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -628,7 +628,7 @@ static struct request_sock_ops mptcp_subflow_v6_request_sock_ops __ro_after_init
 static struct tcp_request_sock_ops subflow_request_sock_ipv6_ops __ro_after_init;
 static struct inet_connection_sock_af_ops subflow_v6_specific __ro_after_init;
 static struct inet_connection_sock_af_ops subflow_v6m_specific __ro_after_init;
-static struct proto tcpv6_prot_override;
+static struct proto tcpv6_prot_override __ro_after_init;
 
 static int subflow_v6_conn_request(struct sock *sk, struct sk_buff *skb)
 {
@@ -926,7 +926,7 @@ static struct sock *subflow_syn_recv_sock(const struct sock *sk,
 }
 
 static struct inet_connection_sock_af_ops subflow_specific __ro_after_init;
-static struct proto tcp_prot_override;
+static struct proto tcp_prot_override __ro_after_init;
 
 enum mapping_status {
 	MAPPING_OK,
-- 
2.35.3


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

end of thread, other threads:[~2023-02-24  9:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23  3:37 [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Geliang Tang
2023-02-23  5:13 ` mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results MPTCP CI
2023-02-23  9:10 ` [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Matthieu Baerts
2023-02-23 13:35   ` Geliang Tang
2023-02-23 13:49     ` Matthieu Baerts
2023-02-23 13:55     ` Matthieu Baerts
2023-02-23 13:57 ` Matthieu Baerts
2023-02-24  1:29   ` Geliang Tang
2023-02-24  9:36     ` Matthieu Baerts

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.