aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 06:52:20 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-24 01:31:38 -0400
commit042a90106b09beff4fa9015d1940e45ce10297ab (patch)
tree2a16477b8f38a48f0f84ead5ca27ca9db95ab0aa /net/tipc
parent5719e5eb31e485d9eac8e2303ef9ca2f42c49225 (diff)
net: tipc: constify genl_ops
genl_ops are not supposed to change at runtime. All functions working with genl_ops provided by <net/genetlink.h> work with const genl_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/netlink_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/netlink_compat.c b/net/tipc/netlink_compat.c
index 750949dfc1d7..e48f0b2c01b9 100644
--- a/net/tipc/netlink_compat.c
+++ b/net/tipc/netlink_compat.c
@@ -1217,7 +1217,7 @@ send:
1217 return err; 1217 return err;
1218} 1218}
1219 1219
1220static struct genl_ops tipc_genl_compat_ops[] = { 1220static const struct genl_ops tipc_genl_compat_ops[] = {
1221 { 1221 {
1222 .cmd = TIPC_GENL_CMD, 1222 .cmd = TIPC_GENL_CMD,
1223 .doit = tipc_nl_compat_recv, 1223 .doit = tipc_nl_compat_recv,