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

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