[PATCH] smack: constify nf_hook_ops

2017-08-26 Thread Arvind Yadav
nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks and nf_unregister_net_hooks are working with const nf_hook_ops. So mark the non-const nf_hook_ops structs as const. Signed-off-by: Arvind Yadav --- security/smack/smack_netfilter.c | 2 +- 1 file

[PATCH] smack: constify nf_hook_ops

2017-08-26 Thread Arvind Yadav
nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks and nf_unregister_net_hooks are working with const nf_hook_ops. So mark the non-const nf_hook_ops structs as const. Signed-off-by: Arvind Yadav --- security/smack/smack_netfilter.c | 2 +- 1 file changed, 1 insertion(+), 1