From: Michal Simek Date: Fri, 25 Jul 2025 12:01:22 +0000 (+0200) Subject: dm: core: Mark root_info as const X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25801ef2d46d44fe1a137971bf4e4d1c0cc529ce;p=thirdparty%2Fu-boot.git 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 Link: https://lore.kernel.org/r/18d92a93a9863ed0452e82a1f8e0ff9205adb4f9.1753444878.git.michal.simek@amd.com --- 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", };