diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-07-28 09:19:17 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-08-07 12:23:09 -0400 |
commit | 417f7c59ed75bd87aed59052a72bb74674255ea7 (patch) | |
tree | 81ef50f8fb740df43233fac434859c05780ca99c /fs/dlm | |
parent | 3b0e761ba83cb063eb95734faece35378beebac4 (diff) |
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lockspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
235 | return 0; | 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 | .uevent = dlm_uevent, | 239 | .uevent = dlm_uevent, |
240 | }; | 240 | }; |
241 | 241 | ||