Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 042a9010 authored by Arvind Yadav's avatar Arvind Yadav Committed by David S. Miller
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5719e5eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1217,7 +1217,7 @@ static int tipc_nl_compat_recv(struct sk_buff *skb, struct genl_info *info)
	return err;
}

static struct genl_ops tipc_genl_compat_ops[] = {
static const struct genl_ops tipc_genl_compat_ops[] = {
	{
		.cmd		= TIPC_GENL_CMD,
		.doit		= tipc_nl_compat_recv,