git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2679e
)
dm: core: Mark root_info as const
author
Michal Simek
<michal.simek@amd.com>
Fri, 25 Jul 2025 12:01:22 +0000
(14:01 +0200)
committer
Michal Simek
<michal.simek@amd.com>
Tue, 26 Aug 2025 05:30:09 +0000
(07:30 +0200)
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
drivers/core/root.c
patch
|
blob
|
history
diff --git
a/drivers/core/root.c
b/drivers/core/root.c
index
e53381e
..
d43645f
100644
(file)
--- 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",
};