netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 2/8] drop_monitor: make genl_multicast_group const
       [not found] <20160831151445.6c8e4e06@xeon-e3>
@ 2016-08-31 22:15 ` Stephen Hemminger
  2016-08-31 22:17 ` [PATCH net-next 3/8] batman: make netlink attributes const Stephen Hemminger
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:15 UTC (permalink / raw)
  To: David Miller; +Cc: netdev


Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/core/drop_monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c
index d6b3b57..72cfb0c 100644
--- a/net/core/drop_monitor.c
+++ b/net/core/drop_monitor.c
@@ -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", },
 };
 
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 3/8] batman: make netlink attributes const
       [not found] <20160831151445.6c8e4e06@xeon-e3>
  2016-08-31 22:15 ` [PATCH net-next 2/8] drop_monitor: make genl_multicast_group const Stephen Hemminger
@ 2016-08-31 22:17 ` Stephen Hemminger
  2016-08-31 22:17 ` [PATCH net-next 4/8] netns: make nla_policy const Stephen Hemminger
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:17 UTC (permalink / raw)
  To: David Miller, Marek Lindner, Simon Wunderlich, Antonio Quartulli; +Cc: netdev


Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/batman-adv/netlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c
index 18831e7..64cb6ac 100644
--- a/net/batman-adv/netlink.c
+++ b/net/batman-adv/netlink.c
@@ -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 },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 4/8] netns: make nla_policy const
       [not found] <20160831151445.6c8e4e06@xeon-e3>
  2016-08-31 22:15 ` [PATCH net-next 2/8] drop_monitor: make genl_multicast_group const Stephen Hemminger
  2016-08-31 22:17 ` [PATCH net-next 3/8] batman: make netlink attributes const Stephen Hemminger
@ 2016-08-31 22:17 ` Stephen Hemminger
  2016-08-31 22:19 ` [PATCH net-next 5/8] fou: " Stephen Hemminger
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:17 UTC (permalink / raw)
  To: David Miller; +Cc: netdev


Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/core/net_namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 1fe5816..7a77dca 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -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 },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 5/8] fou: make nla_policy const
       [not found] <20160831151445.6c8e4e06@xeon-e3>
                   ` (2 preceding siblings ...)
  2016-08-31 22:17 ` [PATCH net-next 4/8] netns: make nla_policy const Stephen Hemminger
@ 2016-08-31 22:19 ` Stephen Hemminger
  2016-08-31 22:20 ` [PATCH net-next 6/8] ila: " Stephen Hemminger
  2016-08-31 22:21 ` [PATCH net-next 7/8] tcp: " Stephen Hemminger
  5 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:19 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Tom Herbert



Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/ipv4/fou.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c
index 321d57f..cf50f7e 100644
--- a/net/ipv4/fou.c
+++ b/net/ipv4/fou.c
@@ -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, },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 6/8] ila: make nla_policy const
       [not found] <20160831151445.6c8e4e06@xeon-e3>
                   ` (3 preceding siblings ...)
  2016-08-31 22:19 ` [PATCH net-next 5/8] fou: " Stephen Hemminger
@ 2016-08-31 22:20 ` Stephen Hemminger
  2016-08-31 22:21 ` [PATCH net-next 7/8] tcp: " Stephen Hemminger
  5 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:20 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Tom Herbert


Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/ipv6/ila/ila_lwt.c  | 2 +-
 net/ipv6/ila/ila_xlat.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/ila/ila_lwt.c b/net/ipv6/ila/ila_lwt.c
index c8314c6..e50c27a 100644
--- a/net/ipv6/ila/ila_lwt.c
+++ b/net/ipv6/ila/ila_lwt.c
@@ -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, },
 };
diff --git a/net/ipv6/ila/ila_xlat.c b/net/ipv6/ila/ila_xlat.c
index e6eca5f..e604013 100644
--- a/net/ipv6/ila/ila_xlat.c
+++ b/net/ipv6/ila/ila_xlat.c
@@ -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, },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 7/8] tcp: make nla_policy const
       [not found] <20160831151445.6c8e4e06@xeon-e3>
                   ` (4 preceding siblings ...)
  2016-08-31 22:20 ` [PATCH net-next 6/8] ila: " Stephen Hemminger
@ 2016-08-31 22:21 ` Stephen Hemminger
  5 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:21 UTC (permalink / raw)
  To: David Miller; +Cc: netdev


Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/ipv4/tcp_metrics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c
index b617826..bf1f3b2 100644
--- a/net/ipv4/tcp_metrics.c
+++ b/net/ipv4/tcp_metrics.c
@@ -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), },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-01  6:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20160831151445.6c8e4e06@xeon-e3>
2016-08-31 22:15 ` [PATCH net-next 2/8] drop_monitor: make genl_multicast_group const Stephen Hemminger
2016-08-31 22:17 ` [PATCH net-next 3/8] batman: make netlink attributes const Stephen Hemminger
2016-08-31 22:17 ` [PATCH net-next 4/8] netns: make nla_policy const Stephen Hemminger
2016-08-31 22:19 ` [PATCH net-next 5/8] fou: " Stephen Hemminger
2016-08-31 22:20 ` [PATCH net-next 6/8] ila: " Stephen Hemminger
2016-08-31 22:21 ` [PATCH net-next 7/8] tcp: " Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).