]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Constify static struct genl_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 26 May 2021 20:35:45 +0000 (22:35 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:16 +0000 (21:28 -0500)
commitaaae608fa0ec77a950a015bdc4f1ee603de4d30f
tree4935c060adc04e4229f52d1a5670913bc19762fa
parent2651e7b0ae3fb1281f3807b8b47302a5ec8f69b9
cifs: Constify static struct genl_ops

The only usage of cifs_genl_ops[] is to assign its address to the ops
field in the genl_family struct, which is a pointer to const. Make it
const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/netlink.c