Skip to content

Commit 094b53e

Browse files
Nicolas FrattaroliJassi Brar
authored andcommitted
mailbox: mtk-gpueb: Add missing 'static' to mailbox ops struct
mtk_gpueb_mbox_ops should be declared static. However, due to its const nature, this specifier was missed, as it compiled fine without it and with no warning by the compiler. arc-linux-gcc (GCC) 12.5.0 doesn't seem to like it however, so add the static to fix that. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202510100629.3nGvrhEU-lkp@intel.com/ Fixes: dbca0ea ("mailbox: add MediaTek GPUEB IPI mailbox") Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent a195c7c commit 094b53e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mailbox/mtk-gpueb-mailbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static bool mtk_gpueb_mbox_last_tx_done(struct mbox_chan *chan)
200200
return !(readl(ch->ebm->mbox_ctl + GPUEB_MBOX_CTL_TX_STS) & BIT(ch->num));
201201
}
202202

203-
const struct mbox_chan_ops mtk_gpueb_mbox_ops = {
203+
static const struct mbox_chan_ops mtk_gpueb_mbox_ops = {
204204
.send_data = mtk_gpueb_mbox_send_data,
205205
.startup = mtk_gpueb_mbox_startup,
206206
.shutdown = mtk_gpueb_mbox_shutdown,

0 commit comments

Comments
 (0)