Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dlm: constify kset_uevent_ops structure

Declare kset_uevent_ops structure as const as it is only passed as an
argument to the function kset_create_and_add. This argument is of type
const, so declare the structure as const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>

authored by

Bhumika Goyal and committed by
David Teigland
417f7c59 3b0e761b

+1 -1
+1 -1
fs/dlm/lockspace.c
··· 235 235 return 0; 236 236 } 237 237 238 - static struct kset_uevent_ops dlm_uevent_ops = { 238 + static const struct kset_uevent_ops dlm_uevent_ops = { 239 239 .uevent = dlm_uevent, 240 240 }; 241 241