]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dlm: constify kset_uevent_ops structure
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 28 Jul 2017 13:19:17 +0000 (18:49 +0530)
committerDavid Teigland <teigland@redhat.com>
Mon, 7 Aug 2017 16:23:09 +0000 (11:23 -0500)
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>
fs/dlm/lockspace.c

index 9ebfa05df9d2eff532b6b29ea37ad8636cc3f51f..78a7c855b06b374f87223b41282cdae1c8f798e8 100644 (file)
@@ -235,7 +235,7 @@ static int dlm_uevent(struct kset *kset, struct kobject *kobj,
        return 0;
 }
 
-static struct kset_uevent_ops dlm_uevent_ops = {
+static const struct kset_uevent_ops dlm_uevent_ops = {
        .uevent = dlm_uevent,
 };