Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remoteproc: mtk_scp: Constify buffer passed to scp_send_ipi()

scp_send_ipi() should only send the passed buffer, without modifying its
contents, so mark pointer 'buf' as pointer to const.

Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260317-rpmsg-send-const-v3-2-4d7fd27f037f@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
90dacbf4 4251dab9

+2 -2
+1 -1
drivers/remoteproc/mtk_scp.c
··· 1078 1078 scp_ipi_unregister(scp, id); 1079 1079 } 1080 1080 1081 - static int scp_send_ipi(struct platform_device *pdev, u32 id, void *buf, 1081 + static int scp_send_ipi(struct platform_device *pdev, u32 id, const void *buf, 1082 1082 unsigned int len, unsigned int wait) 1083 1083 { 1084 1084 struct mtk_scp *scp = platform_get_drvdata(pdev);
+1 -1
include/linux/rpmsg/mtk_rpmsg.h
··· 25 25 ipi_handler_t handler, void *priv); 26 26 void (*unregister_ipi)(struct platform_device *pdev, u32 id); 27 27 int (*send_ipi)(struct platform_device *pdev, u32 id, 28 - void *buf, unsigned int len, unsigned int wait); 28 + const void *buf, unsigned int len, unsigned int wait); 29 29 int ns_ipi_id; 30 30 }; 31 31