* [PATCH 1/6] mailbox: apple: Staticize and constify driver ops
@ 2026-05-07 22:06 Marek Vasut
2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Tom Rini
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
---
drivers/mailbox/apple-mbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/apple-mbox.c b/drivers/mailbox/apple-mbox.c
index 2ee49734f40..39a7edc0285 100644
--- a/drivers/mailbox/apple-mbox.c
+++ b/drivers/mailbox/apple-mbox.c
@@ -59,7 +59,7 @@ static int apple_mbox_recv(struct mbox_chan *chan, void *data)
return 0;
}
-struct mbox_ops apple_mbox_ops = {
+static const struct mbox_ops apple_mbox_ops = {
.of_xlate = apple_mbox_of_xlate,
.send = apple_mbox_send,
.recv = apple_mbox_recv,
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/6] mailbox: imx: Staticize and constify driver ops
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
@ 2026-05-07 22:06 ` Marek Vasut
2026-05-13 11:05 ` Peng Fan
2026-05-07 22:06 ` [PATCH 3/6] mailbox: k3-sec-proxy: " Marek Vasut
` (4 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
To: u-boot
Cc: Marek Vasut, NXP i.MX U-Boot Team, Fabio Estevam, Patrice Chotard,
Peng Fan, Stefano Babic, Tom Rini, Yao Zi
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@nabladev.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Yao Zi <me@ziyao.cc>
Cc: u-boot@lists.denx.de
---
drivers/mailbox/imx-mailbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
index c7eaa3de96f..fd0fce21d78 100644
--- a/drivers/mailbox/imx-mailbox.c
+++ b/drivers/mailbox/imx-mailbox.c
@@ -387,7 +387,7 @@ int imx_mu_of_xlate(struct mbox_chan *chan, struct ofnode_phandle_args *args)
return plat->dcfg->of_xlate(chan, args);
}
-struct mbox_ops imx_mu_ops = {
+static const struct mbox_ops imx_mu_ops = {
.of_xlate = imx_mu_of_xlate,
.request = imx_mu_chan_request,
.rfree = imx_mu_chan_free,
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/6] mailbox: k3-sec-proxy: Staticize and constify driver ops
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
@ 2026-05-07 22:06 ` Marek Vasut
2026-05-07 22:06 ` [PATCH 4/6] mailbox: renesas: " Marek Vasut
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Tom Rini
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
---
drivers/mailbox/k3-sec-proxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c
index 6f5ad37919f..6eebfcd3601 100644
--- a/drivers/mailbox/k3-sec-proxy.c
+++ b/drivers/mailbox/k3-sec-proxy.c
@@ -293,7 +293,7 @@ static int k3_sec_proxy_recv(struct mbox_chan *chan, void *data)
return 0;
}
-struct mbox_ops k3_sec_proxy_mbox_ops = {
+static const struct mbox_ops k3_sec_proxy_mbox_ops = {
.of_xlate = k3_sec_proxy_of_xlate,
.request = k3_sec_proxy_request,
.rfree = k3_sec_proxy_free,
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/6] mailbox: renesas: Staticize and constify driver ops
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
2026-05-07 22:06 ` [PATCH 3/6] mailbox: k3-sec-proxy: " Marek Vasut
@ 2026-05-07 22:06 ` Marek Vasut
2026-05-07 22:06 ` [PATCH 5/6] mailbox: sandbox: " Marek Vasut
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Nobuhiro Iwamatsu, Tom Rini, Tuyen Dang
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Tuyen Dang <tuyen.dang.xa@renesas.com>
Cc: u-boot@lists.denx.de
---
drivers/mailbox/renesas-mfis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/renesas-mfis.c b/drivers/mailbox/renesas-mfis.c
index 1e9e8285974..19b801e56a6 100644
--- a/drivers/mailbox/renesas-mfis.c
+++ b/drivers/mailbox/renesas-mfis.c
@@ -29,7 +29,7 @@ static int mfis_send(struct mbox_chan *chan, const void *data)
return 0;
}
-struct mbox_ops mfis_mbox_ops = {
+static const struct mbox_ops mfis_mbox_ops = {
.send = mfis_send,
};
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 5/6] mailbox: sandbox: Staticize and constify driver ops
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
` (2 preceding siblings ...)
2026-05-07 22:06 ` [PATCH 4/6] mailbox: renesas: " Marek Vasut
@ 2026-05-07 22:06 ` Marek Vasut
2026-05-07 22:06 ` [PATCH 6/6] mailbox: stm32-ipcc: " Marek Vasut
2026-05-07 22:14 ` [PATCH 1/6] mailbox: apple: " Mark Kettenis
5 siblings, 0 replies; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Simon Glass, Tom Rini
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
---
drivers/mailbox/sandbox-mbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/sandbox-mbox.c b/drivers/mailbox/sandbox-mbox.c
index 87e06e492fe..d6ac758c4d8 100644
--- a/drivers/mailbox/sandbox-mbox.c
+++ b/drivers/mailbox/sandbox-mbox.c
@@ -86,7 +86,7 @@ static const struct udevice_id sandbox_mbox_ids[] = {
{ }
};
-struct mbox_ops sandbox_mbox_mbox_ops = {
+static const struct mbox_ops sandbox_mbox_mbox_ops = {
.request = sandbox_mbox_request,
.rfree = sandbox_mbox_free,
.send = sandbox_mbox_send,
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 6/6] mailbox: stm32-ipcc: Staticize and constify driver ops
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
` (3 preceding siblings ...)
2026-05-07 22:06 ` [PATCH 5/6] mailbox: sandbox: " Marek Vasut
@ 2026-05-07 22:06 ` Marek Vasut
2026-05-11 6:42 ` Patrice CHOTARD
2026-05-07 22:14 ` [PATCH 1/6] mailbox: apple: " Mark Kettenis
5 siblings, 1 reply; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
To: u-boot
Cc: Marek Vasut, Patrice Chotard, Patrick Delaunay, Tom Rini,
uboot-stm32
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
Cc: uboot-stm32@st-md-mailman.stormreply.com
---
drivers/mailbox/stm32-ipcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
index dda108735fc..49f7795b3cd 100644
--- a/drivers/mailbox/stm32-ipcc.c
+++ b/drivers/mailbox/stm32-ipcc.c
@@ -147,7 +147,7 @@ static const struct udevice_id stm32_ipcc_ids[] = {
{ }
};
-struct mbox_ops stm32_ipcc_mbox_ops = {
+static const struct mbox_ops stm32_ipcc_mbox_ops = {
.request = stm32_ipcc_request,
.rfree = stm32_ipcc_free,
.send = stm32_ipcc_send,
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/6] mailbox: apple: Staticize and constify driver ops
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
` (4 preceding siblings ...)
2026-05-07 22:06 ` [PATCH 6/6] mailbox: stm32-ipcc: " Marek Vasut
@ 2026-05-07 22:14 ` Mark Kettenis
5 siblings, 0 replies; 9+ messages in thread
From: Mark Kettenis @ 2026-05-07 22:14 UTC (permalink / raw)
To: Marek Vasut; +Cc: u-boot, marek.vasut+renesas, trini
> From: Marek Vasut <marek.vasut+renesas@mailbox.org>
> Date: Fri, 8 May 2026 00:06:28 +0200
>
> Set the ops structure as static const. The structure is not accessible
> from outside of this driver and is not going to be modified at runtime.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Acked-by: Mark Kettenis <kettenis@openbsd.org>
> ---
> Cc: Tom Rini <trini@konsulko.com>
> Cc: u-boot@lists.denx.de
> ---
> drivers/mailbox/apple-mbox.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mailbox/apple-mbox.c b/drivers/mailbox/apple-mbox.c
> index 2ee49734f40..39a7edc0285 100644
> --- a/drivers/mailbox/apple-mbox.c
> +++ b/drivers/mailbox/apple-mbox.c
> @@ -59,7 +59,7 @@ static int apple_mbox_recv(struct mbox_chan *chan, void *data)
> return 0;
> }
>
> -struct mbox_ops apple_mbox_ops = {
> +static const struct mbox_ops apple_mbox_ops = {
> .of_xlate = apple_mbox_of_xlate,
> .send = apple_mbox_send,
> .recv = apple_mbox_recv,
> --
> 2.53.0
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 6/6] mailbox: stm32-ipcc: Staticize and constify driver ops
2026-05-07 22:06 ` [PATCH 6/6] mailbox: stm32-ipcc: " Marek Vasut
@ 2026-05-11 6:42 ` Patrice CHOTARD
0 siblings, 0 replies; 9+ messages in thread
From: Patrice CHOTARD @ 2026-05-11 6:42 UTC (permalink / raw)
To: Marek Vasut, u-boot; +Cc: Patrick Delaunay, Tom Rini, uboot-stm32
On 5/8/26 00:06, Marek Vasut wrote:
> Set the ops structure as static const. The structure is not accessible
> from outside of this driver and is not going to be modified at runtime.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: u-boot@lists.denx.de
> Cc: uboot-stm32@st-md-mailman.stormreply.com
> ---
> drivers/mailbox/stm32-ipcc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
> index dda108735fc..49f7795b3cd 100644
> --- a/drivers/mailbox/stm32-ipcc.c
> +++ b/drivers/mailbox/stm32-ipcc.c
> @@ -147,7 +147,7 @@ static const struct udevice_id stm32_ipcc_ids[] = {
> { }
> };
>
> -struct mbox_ops stm32_ipcc_mbox_ops = {
> +static const struct mbox_ops stm32_ipcc_mbox_ops = {
> .request = stm32_ipcc_request,
> .rfree = stm32_ipcc_free,
> .send = stm32_ipcc_send,
Hi Marek
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/6] mailbox: imx: Staticize and constify driver ops
2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
@ 2026-05-13 11:05 ` Peng Fan
0 siblings, 0 replies; 9+ messages in thread
From: Peng Fan @ 2026-05-13 11:05 UTC (permalink / raw)
To: Marek Vasut
Cc: u-boot, NXP i.MX U-Boot Team, Fabio Estevam, Patrice Chotard,
Peng Fan, Stefano Babic, Tom Rini, Yao Zi
On Fri, May 08, 2026 at 12:06:29AM +0200, Marek Vasut wrote:
>Set the ops structure as static const. The structure is not accessible
>from outside of this driver and is not going to be modified at runtime.
>
>Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-05-13 11:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
2026-05-13 11:05 ` Peng Fan
2026-05-07 22:06 ` [PATCH 3/6] mailbox: k3-sec-proxy: " Marek Vasut
2026-05-07 22:06 ` [PATCH 4/6] mailbox: renesas: " Marek Vasut
2026-05-07 22:06 ` [PATCH 5/6] mailbox: sandbox: " Marek Vasut
2026-05-07 22:06 ` [PATCH 6/6] mailbox: stm32-ipcc: " Marek Vasut
2026-05-11 6:42 ` Patrice CHOTARD
2026-05-07 22:14 ` [PATCH 1/6] mailbox: apple: " Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox