提交 417f7c59 编写于 作者: B Bhumika Goyal 提交者: David Teigland

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: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
上级 3b0e761b
......@@ -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,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册