This is a note to let you know that I've just added the patch titled remoteproc: stm32: Constify st_rproc_ops to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: remoteproc-stm32-constify-st_rproc_ops.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit eb7a5ed5ad1fd50f57b40e1866c2089e1b13b0f4 Author: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx> Date: Sun Nov 8 00:36:30 2020 +0100 remoteproc: stm32: Constify st_rproc_ops [ Upstream commit 0eee3d28ff6572f0e1afd41e863e44d396a308e2 ] The only usage of st_rproc_ops is to pass its address to rproc_alloc() which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Acked-by: Arnaud Pouliquen <arnaud.pouliquen@xxxxxx> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx> Link: https://lore.kernel.org/r/20201107233630.9728-3-rikard.falkeborn@xxxxxxxxx Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx> Stable-dep-of: 32381bbccba4 ("remoteproc: stm32: Fix incorrect type in assignment for va") Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index df784fec124f6..5f12553f0b6d7 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -553,7 +553,7 @@ static void stm32_rproc_kick(struct rproc *rproc, int vqid) } } -static struct rproc_ops st_rproc_ops = { +static const struct rproc_ops st_rproc_ops = { .start = stm32_rproc_start, .stop = stm32_rproc_stop, .attach = stm32_rproc_attach,