mptcp: mark ops structures as ro_after_init
authorFlorian Westphal <fw@strlen.de>
Wed, 16 Feb 2022 02:11:29 +0000 (18:11 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 04:52:05 +0000 (20:52 -0800)
commit51fa7f8ebf0e25c7a9039fa3988a623d5f3855aa
tree9a7fbc8ca3955471e3a4140edb7a82ac8ce4f05d
parent90d930882139f166ed2551205d6f6d8c50b656fb
mptcp: mark ops structures as ro_after_init

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>
net/mptcp/subflow.c