mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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>
This commit is contained in:
parent
3b0e761ba8
commit
417f7c59ed
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue