aboutsummaryrefslogtreecommitdiffstats
path: root/net/mptcp/pm_netlink.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2020-10-04 21:13:36 -0700
committerDavid S. Miller <davem@davemloft.net>2020-10-04 21:13:36 -0700
commitc2568c8c9e636a56abf31da4b28b65d3ded02524 (patch)
treea0df8543af846d2289f60e135fad2509602a555e /net/mptcp/pm_netlink.c
parentf5083d0cee08a4b87d5d7a5c57f60ec128bff997 (diff)
parentb980b313e5a2ace214322af9f3183c269b5c55ae (diff)
downloadkernel_replicant_linux-c2568c8c9e636a56abf31da4b28b65d3ded02524.tar.gz
kernel_replicant_linux-c2568c8c9e636a56abf31da4b28b65d3ded02524.tar.bz2
kernel_replicant_linux-c2568c8c9e636a56abf31da4b28b65d3ded02524.zip
Merge branch 'net-Constify-struct-genl_small_ops'
Rikard Falkeborn says: ==================== net: Constify struct genl_small_ops Make a couple of static struct genl_small_ops const to allow the compiler to put them in read-only memory. Patches are independent. v2: Rebase on net-next, genl_ops -> genl_small_ops ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/pm_netlink.c')
-rw-r--r--net/mptcp/pm_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
index 9f9cd41b7733..0d6f3d912891 100644
--- a/net/mptcp/pm_netlink.c
+++ b/net/mptcp/pm_netlink.c
@@ -1054,7 +1054,7 @@ fail:
return -EMSGSIZE;
}
-static struct genl_small_ops mptcp_pm_ops[] = {
+static const struct genl_small_ops mptcp_pm_ops[] = {
{
.cmd = MPTCP_PM_CMD_ADD_ADDR,
.doit = mptcp_nl_cmd_add_addr,