From: Bhumika Goyal Date: Fri, 28 Jul 2017 13:19:17 +0000 (+0530) Subject: dlm: constify kset_uevent_ops structure X-Git-Tag: v4.14-rc1~133^2~3 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=417f7c59ed75bd87aed59052a72bb74674255ea7;p=linux.git 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 Signed-off-by: David Teigland --- diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 9ebfa05df9d2..78a7c855b06b 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -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, };