Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+3 -3
+1 -1
net/mptcp/pm_netlink.c
··· 1054 1054 return -EMSGSIZE; 1055 1055 } 1056 1056 1057 - static struct genl_small_ops mptcp_pm_ops[] = { 1057 + static const struct genl_small_ops mptcp_pm_ops[] = { 1058 1058 { 1059 1059 .cmd = MPTCP_PM_CMD_ADD_ADDR, 1060 1060 .doit = mptcp_nl_cmd_add_addr,
+1 -1
net/openvswitch/conntrack.c
··· 2231 2231 return err; 2232 2232 } 2233 2233 2234 - static struct genl_small_ops ct_limit_genl_ops[] = { 2234 + static const struct genl_small_ops ct_limit_genl_ops[] = { 2235 2235 { .cmd = OVS_CT_LIMIT_CMD_SET, 2236 2236 .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, 2237 2237 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN
+1 -1
net/openvswitch/meter.c
··· 672 672 return false; 673 673 } 674 674 675 - static struct genl_small_ops dp_meter_genl_ops[] = { 675 + static const struct genl_small_ops dp_meter_genl_ops[] = { 676 676 { .cmd = OVS_METER_CMD_FEATURES, 677 677 .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, 678 678 .flags = 0, /* OK for unprivileged users. */