Re: [PATCH] mm/zswap: constify struct kernel_param_ops uses

2017-08-28 Thread Dan Streetman
On Sat, Aug 26, 2017 at 1:41 PM, Arvind Yadav wrote: > kernel_param_ops are not supposed to change at runtime. All functions > working with kernel_param_ops provided by work > with const kernel_param_ops. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Reviewed-by: Dan S

[PATCH] mm/zswap: constify struct kernel_param_ops uses

2017-08-26 Thread Arvind Yadav
kernel_param_ops are not supposed to change at runtime. All functions working with kernel_param_ops provided by work with const kernel_param_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- mm/zswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff