Merge tag 'modules-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof...
[linux-block.git] / kernel / livepatch / core.c
index 1de2c40cc37841a6a506467dd9b96725e6b81f8b..fc851455740cdb16b2689f36cb07a59efcfcb8b8 100644 (file)
@@ -595,7 +595,7 @@ static void klp_kobj_release_patch(struct kobject *kobj)
        complete(&patch->finish);
 }
 
-static struct kobj_type klp_ktype_patch = {
+static const struct kobj_type klp_ktype_patch = {
        .release = klp_kobj_release_patch,
        .sysfs_ops = &kobj_sysfs_ops,
        .default_groups = klp_patch_groups,
@@ -611,7 +611,7 @@ static void klp_kobj_release_object(struct kobject *kobj)
                klp_free_object_dynamic(obj);
 }
 
-static struct kobj_type klp_ktype_object = {
+static const struct kobj_type klp_ktype_object = {
        .release = klp_kobj_release_object,
        .sysfs_ops = &kobj_sysfs_ops,
        .default_groups = klp_object_groups,
@@ -627,7 +627,7 @@ static void klp_kobj_release_func(struct kobject *kobj)
                klp_free_func_nop(func);
 }
 
-static struct kobj_type klp_ktype_func = {
+static const struct kobj_type klp_ktype_func = {
        .release = klp_kobj_release_func,
        .sysfs_ops = &kobj_sysfs_ops,
 };