projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bcb94c
)
batman-adv: Mark batadv_netlink_ops as const
author
Sven Eckelmann
<sven@narfation.org>
Tue, 18 Oct 2016 13:57:36 +0000
(15:57 +0200)
committer
Simon Wunderlich
<sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:32 +0000
(11:11 +0100)
The genl_ops don't need to be written by anyone and thus can be moved in a
ro memory range.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/netlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/batman-adv/netlink.c
b/net/batman-adv/netlink.c
index 21712814f4d97e02ef56de0731d41f028a5478ea..062738163bdce747b7f49c96d9180899bb15ea2f 100644
(file)
--- a/
net/batman-adv/netlink.c
+++ b/
net/batman-adv/netlink.c
@@
-530,7
+530,7
@@
batadv_netlink_dump_hardifs(struct sk_buff *msg, struct netlink_callback *cb)
return msg->len;
}
-static struct genl_ops batadv_netlink_ops[] = {
+static
const
struct genl_ops batadv_netlink_ops[] = {
{
.cmd = BATADV_CMD_GET_MESH_INFO,
.flags = GENL_ADMIN_PERM,