]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit408eb129f7aa0bc3d085cd62be9a98df81c0abcc
tree9a7fbc8ca3955471e3a4140edb7a82ac8ce4f05d
parentef079bb191c1c5fbdace006732b8f7fe4b670461
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