]> 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)
commit00bbb2c1698b5b5632e8000cba362711b1337abf
tree9a7fbc8ca3955471e3a4140edb7a82ac8ce4f05d
parent472f917b2a3d8b5754e42011ea3ca6b679dcdd43
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