summaryrefslogtreecommitdiff
path: root/drivers/core/root.c
diff options
context:
space:
mode:
authorMichal Simek <[email protected]>2025-07-25 14:01:22 +0200
committerMichal Simek <[email protected]>2025-08-26 07:30:09 +0200
commit25801ef2d46d44fe1a137971bf4e4d1c0cc529ce (patch)
tree21cc8e7d773132133eb51335375a445adda0ae98 /drivers/core/root.c
parent4b2679efc5f50ac38b9c2f20b3beec56283efddb (diff)
dm: core: Mark root_info as const
root_info driver structure is not changing that's why mark them as const which ensure that structure will be moved from .data section to .rodata section. Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/18d92a93a9863ed0452e82a1f8e0ff9205adb4f9.1753444878.git.michal.simek@amd.com
Diffstat (limited to 'drivers/core/root.c')
-rw-r--r--drivers/core/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c
index e53381e3b32..d43645f34dd 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -32,7 +32,7 @@
DECLARE_GLOBAL_DATA_PTR;
-static struct driver_info root_info = {
+static const struct driver_info root_info = {
.name = "root_driver",
};