From 1283fc7316d211853f7293f1dae83be44e7fb82e Mon Sep 17 00:00:00 2001 From: Yilun Lin Date: Tue, 26 Feb 2019 15:55:49 +0800 Subject: kukui_scp/ipi: Clarify ipi_send() signature. ipi_send() shuold not modify the buffer argument. This CL changes argument type from 'void *' to 'const void *'. TEST=make BOARD=kukui_scp -j BUG=b:120808999 BRANCH=None Change-Id: I1e629c7d6ba6902df1e8e2a21b7ac29bf3dffebf Signed-off-by: Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/1490796 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Yilun Lin Reviewed-by: Pi-Hsun Shih --- chip/mt_scp/ipi.c | 2 +- chip/mt_scp/ipi_chip.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chip/mt_scp/ipi.c b/chip/mt_scp/ipi.c index 5ec49d318d..05bbed890b 100644 --- a/chip/mt_scp/ipi.c +++ b/chip/mt_scp/ipi.c @@ -59,7 +59,7 @@ static inline void try_to_wakeup_ap(int32_t id) } /* Send data from SCP to AP. */ -int ipi_send(int32_t id, void *buf, uint32_t len, int wait) +int ipi_send(int32_t id, const void *buf, uint32_t len, int wait) { /* * TODO(b:117917141): Evaluate if we can remove this once we have the diff --git a/chip/mt_scp/ipi_chip.h b/chip/mt_scp/ipi_chip.h index b6eeddfc87..085c1415af 100644 --- a/chip/mt_scp/ipi_chip.h +++ b/chip/mt_scp/ipi_chip.h @@ -47,7 +47,7 @@ struct ipc_shared_obj { }; /* Send a IPI contents to AP. */ -int ipi_send(int32_t id, void *buf, uint32_t len, int wait); +int ipi_send(int32_t id, const void *buf, uint32_t len, int wait); /* Size of the rpmsg device name, should sync across kernel and EC. */ #define RPMSG_NAME_SIZE 32 -- cgit v1.2.1