projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a25634
)
net: make genetlink ctrl ops const
author
stephen hemminger
<stephen@networkplumber.org>
Wed, 31 Aug 2016 22:22:00 +0000
(15:22 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Sep 2016 21:09:00 +0000
(14:09 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netlink/genetlink.c
b/net/netlink/genetlink.c
index a09132a69869245a20aacc87953213f16a5111e8..23cc12639ba769ac67714f5e5f5f9549a4417c38 100644
(file)
--- 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", },
};