]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rpmsg: Constify buffer passed to send API
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 17 Mar 2026 12:36:52 +0000 (13:36 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 6 Apr 2026 14:37:51 +0000 (09:37 -0500)
commitb8077b4da2e89917ec4c632b66e60d49089bbda3
tree9970c7b5fecbb9ffda67d78c877941a1e05f3806
parent90dacbf4bf13410c727ffaca8fe3ce3276ae58c2
rpmsg: Constify buffer passed to send API

The rpmsg_send(), rpmsg_sendto() and other variants of sending
interfaces should only send the passed data, without modifying its
contents, so mark pointer 'data' as pointer to const.  All users of this
interface already follow this approach, so only the function
declarations have to be updated.

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-3-4d7fd27f037f@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/rpmsg/mtk_rpmsg.c
drivers/rpmsg/qcom_glink_native.c
drivers/rpmsg/qcom_smd.c
drivers/rpmsg/rpmsg_core.c
drivers/rpmsg/rpmsg_internal.h
drivers/rpmsg/virtio_rpmsg_bus.c
include/linux/rpmsg.h