diff options
| author | Michal Simek <[email protected]> | 2025-07-25 14:01:21 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2025-08-26 07:30:09 +0200 |
| commit | 4b2679efc5f50ac38b9c2f20b3beec56283efddb (patch) | |
| tree | 051ee62cd0e42e77c2b1f52766a33e92f11afc59 | |
| parent | 6d491e8913f07b9ad4f9a86fdb0aab2007e72af3 (diff) | |
mailbox: zynqmp-ipi: Mark zynqmp_ipi_dest_mbox_ops as const
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 <[email protected]>
Link: https://lore.kernel.org/r/b7e5dc8841f6e904a7365f2ed45248609c007ddd.1753444878.git.michal.simek@amd.com
| -rw-r--r-- | drivers/mailbox/zynqmp-ipi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c index f62277385fb..79266c56e79 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, }; |
