Skip to content

Commit 417f7c5

Browse files
goyalbhumikateigland
authored andcommitted
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>
1 parent 3b0e761 commit 417f7c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/dlm/lockspace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static int dlm_uevent(struct kset *kset, struct kobject *kobj,
235235
return 0;
236236
}
237237

238-
static struct kset_uevent_ops dlm_uevent_ops = {
238+
static const struct kset_uevent_ops dlm_uevent_ops = {
239239
.uevent = dlm_uevent,
240240
};
241241

0 commit comments

Comments
 (0)