mptcp: mark ops structures as ro_after_init
authorFlorian Westphal <fw@strlen.de>
Wed, 16 Feb 2022 02:11:29 +0000 (18:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:58:52 +0000 (11:58 +0100)
commit13b9fd0dee936e626245b12f1252cb84961925c0
tree09a361ef8de25dae0f9a28eebb3a8017ce044893
parentb2120ed7fd75157a6d83d0671ddf2050627718e3
mptcp: mark ops structures as ro_after_init

commit 51fa7f8ebf0e25c7a9039fa3988a623d5f3855aa upstream.

These structures are initialised from the init hooks, so we can't make
them 'const'.  But no writes occur afterwards, so we can use ro_after_init.

Also, remove bogus EXPORT_SYMBOL, the only access comes from ip
stack, not from kernel modules.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/subflow.c