[PATCH 3/3 v2] net: netlink: constify genl_ops

2017-08-23 Thread Arvind Yadav
genl_ops are not supposed to change at runtime. All functions working with genl_ops provided by work with const genl_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- Changes in v2: Patch Subject was wrong. net/tipc/netlink_compat.c | 2 +- 1 file change

Re: [PATCH 3/3 v2] net: netlink: constify genl_ops

2017-08-23 Thread Kalle Valo
Arvind Yadav writes: > genl_ops are not supposed to change at runtime. All functions > working with genl_ops provided by work with > const genl_ops. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > Changes in v2: > Patch Subject was wrong. > > net/ti

Re: [PATCH 3/3 v2] net: netlink: constify genl_ops

2017-08-23 Thread Arvind Yadav
Hi Kalle, On Wednesday 23 August 2017 03:50 PM, Kalle Valo wrote: Arvind Yadav writes: genl_ops are not supposed to change at runtime. All functions working with genl_ops provided by work with const genl_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- Changes