netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/8] net: make genetlink ctrl ops const
@ 2016-08-31 22:22 Stephen Hemminger
  2016-09-01  6:24 ` [PATCH net-next 8/8] l2tp: make nla_policy const Stephen Hemminger
  2016-09-01 21:09 ` [PATCH net-next 1/8] net: make genetlink ctrl ops const David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Hemminger @ 2016-08-31 22:22 UTC (permalink / raw)
  To: David Miller; +Cc: netdev



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

diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index a09132a..23cc126 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -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", },
 };
 
-- 
2.9.3

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

* [PATCH net-next 8/8] l2tp: make nla_policy const
  2016-08-31 22:22 [PATCH net-next 1/8] net: make genetlink ctrl ops const Stephen Hemminger
@ 2016-09-01  6:24 ` Stephen Hemminger
  2016-09-01 21:09 ` [PATCH net-next 1/8] net: make genetlink ctrl ops const David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2016-09-01  6:24 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, James Chapman


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

diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c
index 1d02e8d..bf31177 100644
--- a/net/l2tp/l2tp_netlink.c
+++ b/net/l2tp/l2tp_netlink.c
@@ -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, },
-- 
2.9.3

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

* Re: [PATCH net-next 1/8] net: make genetlink ctrl ops const
  2016-08-31 22:22 [PATCH net-next 1/8] net: make genetlink ctrl ops const Stephen Hemminger
  2016-09-01  6:24 ` [PATCH net-next 8/8] l2tp: make nla_policy const Stephen Hemminger
@ 2016-09-01 21:09 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-09-01 21:09 UTC (permalink / raw)
  To: stephen; +Cc: netdev


All 8 patches applied, thanks Stephen.

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-31 22:22 [PATCH net-next 1/8] net: make genetlink ctrl ops const Stephen Hemminger
2016-09-01  6:24 ` [PATCH net-next 8/8] l2tp: make nla_policy const Stephen Hemminger
2016-09-01 21:09 ` [PATCH net-next 1/8] net: make genetlink ctrl ops const David Miller

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).