[PATCH 2/3] mailbox: zynqmp-ipi: Mark zynqmp_ipi_dest_mbox_ops as const
Michal Simek
michal.simek at amd.com
Fri Jul 25 14:01:21 CEST 2025
Operations are not changing that's why mark them as const which ensure that
structure will be moved from .data section to .rodata section.
Also mark them as static because they are not used out of this file.
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
drivers/mailbox/zynqmp-ipi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c
index 851aa737c03e..7016653ddfe1 100644
--- a/drivers/mailbox/zynqmp-ipi.c
+++ b/drivers/mailbox/zynqmp-ipi.c
@@ -241,7 +241,7 @@ static int zynqmp_ipi_probe(struct udevice *dev)
return 0;
};
-struct mbox_ops zynqmp_ipi_dest_mbox_ops = {
+static const struct mbox_ops zynqmp_ipi_dest_mbox_ops = {
.send = zynqmp_ipi_send,
.recv = zynqmp_ipi_recv,
};
--
2.43.0
base-commit: 7178360d325a7ea5356b993a7f4156e4e1e80719
More information about the U-Boot
mailing list