net: make genetlink ctrl ops const
Subsystems (2)
PATCH 1/8 net: make genetlink ctrl ops const
Signed-off-by Stephen Hemminger <[email protected]>
--- net/netlink/genetlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/netlink/genetlink.c +2 -2
@@ -977,7 +977,7 @@ static int genl_ctrl_event(int event, struct genl_family *family,return 0 ; } -static struct genl_ops genl_ctrl_ops[] = { +static const struct genl_ops genl_ctrl_ops[] = { { .cmd =CTRL_CMD_GETFAMILY , .doit = ctrl_getfamily,
@@ -986,7 +986,7 @@ static struct genl_ops genl_ctrl_ops[] = { }, }; -static struct genl_multicast_group genl_ctrl_groups[] = { +static const struct genl_multicast_group genl_ctrl_groups[] = { { .name ="notify" , }, };
Signature · 1 line
2.9.3
PATCH 8/8 l2tp: make nla_policy const
Signed-off-by Stephen Hemminger <[email protected]>
--- net/l2tp/l2tp_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/l2tp/l2tp_netlink.c +1 -1
@@ -867,7 +867,7 @@ out:return skb->len; } -static struct nla_policy l2tp_nl_policy[L2TP_ATTR_MAX +1 ] = { +static const struct nla_policy l2tp_nl_policy[L2TP_ATTR_MAX +1 ] = { [L2TP_ATTR_NONE ] = { .type =NLA_UNSPEC , }, [L2TP_ATTR_PW_TYPE ] = { .type =NLA_U16 , }, [L2TP_ATTR_ENCAP_TYPE ] = { .type =NLA_U16 , },
Signature · 1 line
2.9.3
David Miller
maintainerAll 8 patches applied, thanks Stephen.