drop_monitor: make genl_multicast_group const
Subsystems (5)
A message that is not in the archive (sent off-list or not yet received): 20160831151445.6c8e4e06@xeon-e3
PATCH 2/8 drop_monitor: make genl_multicast_group const
Signed-off-by Stephen Hemminger <[email protected]>
--- net/core/drop_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/drop_monitor.c +1 -1
@@ -105,7 +105,7 @@ static struct sk_buff *reset_per_cpu_data(struct per_cpu_dm_data *data)return skb; } -static struct genl_multicast_group dropmon_mcgrps[] = { +static const struct genl_multicast_group dropmon_mcgrps[] = { { .name ="events" , }, };
Signature · 1 line
2.9.3
PATCH 3/8 batman: make netlink attributes const
In reply to a message not in the archiveSigned-off-by Stephen Hemminger <[email protected]>
--- net/batman-adv/netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/batman-adv/netlink.c +2 -2
@@ -62,11 +62,11 @@ enum batadv_netlink_multicast_groups { BATADV_NL_MCGRP_TPMETER, }; -static struct genl_multicast_group batadv_netlink_mcgrps[] = { +static const struct genl_multicast_group batadv_netlink_mcgrps[] = { [BATADV_NL_MCGRP_TPMETER ] = { .name =BATADV_NL_MCAST_GROUP_TPMETER }, }; -static struct nla_policy batadv_netlink_policy[NUM_BATADV_ATTR ] = { +static const struct nla_policy batadv_netlink_policy[NUM_BATADV_ATTR ] = { [BATADV_ATTR_VERSION ] = { .type =NLA_STRING }, [BATADV_ATTR_ALGO_NAME ] = { .type =NLA_STRING }, [BATADV_ATTR_MESH_IFINDEX ] = { .type =NLA_U32 },
Signature · 1 line
2.9.3
PATCH 4/8 netns: make nla_policy const
In reply to a message not in the archiveSigned-off-by Stephen Hemminger <[email protected]>
--- net/core/net_namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/net_namespace.c +1 -1
@@ -533,7 +533,7 @@ static struct pernet_operations __net_initdata net_ns_ops = { .exit = net_ns_net_exit, }; -static struct nla_policy rtnl_net_policy[NETNSA_MAX +1 ] = { +static const struct nla_policy rtnl_net_policy[NETNSA_MAX +1 ] = { [NETNSA_NONE ] = { .type =NLA_UNSPEC }, [NETNSA_NSID ] = { .type =NLA_S32 }, [NETNSA_PID ] = { .type =NLA_U32 },
Signature · 1 line
2.9.3
PATCH 5/8 fou: make nla_policy const
In reply to a message not in the archiveSigned-off-by Stephen Hemminger <[email protected]>
--- net/ipv4/fou.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/fou.c +1 -1
@@ -631,7 +631,7 @@ static struct genl_family fou_nl_family = { .netnsok = true, }; -static struct nla_policy fou_nl_policy[FOU_ATTR_MAX +1 ] = { +static const struct nla_policy fou_nl_policy[FOU_ATTR_MAX +1 ] = { [FOU_ATTR_PORT ] = { .type =NLA_U16 , }, [FOU_ATTR_AF ] = { .type =NLA_U8 , }, [FOU_ATTR_IPPROTO ] = { .type =NLA_U8 , },
Signature · 1 line
2.9.3
PATCH 6/8 ila: make nla_policy const
In reply to a message not in the archiveSigned-off-by Stephen Hemminger <[email protected]>
--- net/ipv6/ila/ila_lwt.c | 2 +- net/ipv6/ila/ila_xlat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/ipv6/ila/ila_lwt.c +1 -1
@@ -51,7 +51,7 @@ drop:return -EINVAL ; } -static struct nla_policy ila_nl_policy[ILA_ATTR_MAX +1 ] = { +static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX +1 ] = { [ILA_ATTR_LOCATOR ] = { .type =NLA_U64 , }, [ILA_ATTR_CSUM_MODE ] = { .type =NLA_U8 , }, };
net/ipv6/ila/ila_xlat.c +1 -1
@@ -128,7 +128,7 @@ static struct genl_family ila_nl_family = { .parallel_ops = true, }; -static struct nla_policy ila_nl_policy[ILA_ATTR_MAX +1 ] = { +static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX +1 ] = { [ILA_ATTR_LOCATOR ] = { .type =NLA_U64 , }, [ILA_ATTR_LOCATOR_MATCH ] = { .type =NLA_U64 , }, [ILA_ATTR_IFINDEX ] = { .type =NLA_U32 , },
Signature · 1 line
2.9.3
PATCH 7/8 tcp: make nla_policy const
In reply to a message not in the archiveSigned-off-by Stephen Hemminger <[email protected]>
--- net/ipv4/tcp_metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/tcp_metrics.c +1 -1
@@ -751,7 +751,7 @@ static struct genl_family tcp_metrics_nl_family = { .netnsok = true, }; -static struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX +1 ] = { +static const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX +1 ] = { [TCP_METRICS_ATTR_ADDR_IPV4 ] = { .type =NLA_U32 , }, [TCP_METRICS_ATTR_ADDR_IPV6 ] = { .type =NLA_BINARY , .len =sizeof (struct in6_addr ), },
Signature · 1 line
2.9.3