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 <michal.simek@amd.com>
Link: https://lore.kernel.org/r/18d92a93a9863ed0452e82a1f8e0ff9205adb4f9.1753444878.git.michal.simek@amd.com
This commit is contained in:
Michal Simek
2025-07-25 14:01:22 +02:00
parent 4b2679efc5
commit 25801ef2d4

View File

@@ -32,7 +32,7 @@
DECLARE_GLOBAL_DATA_PTR;
static struct driver_info root_info = {
static const struct driver_info root_info = {
.name = "root_driver",
};