summaryrefslogtreecommitdiff
path: root/arch/x86/platform/efi
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-02-27 06:09:36 +0300
committerArd Biesheuvel <ardb@kernel.org>2023-05-10 20:00:40 +0300
commit42a8af0fa4333701e0e318d3877f45bd6d51ce49 (patch)
treebb24c2b977b8c4b1588f23f798fcf1b9b8e35c3d /arch/x86/platform/efi
parentac9a78681b921877518763ba0e89202254349d1b (diff)
downloadlinux-42a8af0fa4333701e0e318d3877f45bd6d51ce49.tar.xz
efi: x86: make kobj_type structure constant
Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") the driver core allows the usage of const struct kobj_type. Take advantage of this to constify the structure definition to prevent modification at runtime. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/x86/platform/efi')
-rw-r--r--arch/x86/platform/efi/runtime-map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/runtime-map.c b/arch/x86/platform/efi/runtime-map.c
index bbee682ef8cd..a6f02cef3ca2 100644
--- a/arch/x86/platform/efi/runtime-map.c
+++ b/arch/x86/platform/efi/runtime-map.c
@@ -93,7 +93,7 @@ static void map_release(struct kobject *kobj)
kfree(entry);
}
-static struct kobj_type __refdata map_ktype = {
+static const struct kobj_type __refconst map_ktype = {
.sysfs_ops = &map_attr_ops,
.default_groups = def_groups,
.release = map_release,