File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -596,7 +596,7 @@ static void klp_kobj_release_patch(struct kobject *kobj)
596596 complete (& patch -> finish );
597597}
598598
599- static struct kobj_type klp_ktype_patch = {
599+ static const struct kobj_type klp_ktype_patch = {
600600 .release = klp_kobj_release_patch ,
601601 .sysfs_ops = & kobj_sysfs_ops ,
602602 .default_groups = klp_patch_groups ,
@@ -612,7 +612,7 @@ static void klp_kobj_release_object(struct kobject *kobj)
612612 klp_free_object_dynamic (obj );
613613}
614614
615- static struct kobj_type klp_ktype_object = {
615+ static const struct kobj_type klp_ktype_object = {
616616 .release = klp_kobj_release_object ,
617617 .sysfs_ops = & kobj_sysfs_ops ,
618618 .default_groups = klp_object_groups ,
@@ -628,7 +628,7 @@ static void klp_kobj_release_func(struct kobject *kobj)
628628 klp_free_func_nop (func );
629629}
630630
631- static struct kobj_type klp_ktype_func = {
631+ static const struct kobj_type klp_ktype_func = {
632632 .release = klp_kobj_release_func ,
633633 .sysfs_ops = & kobj_sysfs_ops ,
634634};
You can’t perform that action at this time.
0 commit comments