]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: Constify mptcp_pm_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 4 Oct 2020 23:44:16 +0000 (01:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2020 04:13:36 +0000 (21:13 -0700)
commit691c9e0243c4ce1727ceb623ee36721346078405
tree7f5708544d85653ea6e16be51ec9326a81ad9998
parent2d0f42bda9168919f4ec001cefa84a59b9775da9
mptcp: Constify mptcp_pm_ops

The only usages of mptcp_pm_ops is to assign its address to the small_ops
field of the genl_family struct, which is a const pointer, and applying
ARRAY_SIZE() on it. Make it const to allow the compiler to put it in
read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c