scp_send_ipi() should only send the passed buffer, without modifying its contents, so mark pointer 'buf' as pointer to const.
Showing the changes to include/linux/rpmsg (1 of 2 files). Show all
Unified · Split
| @@ -25,7 +25,7 @@ struct mtk_rpmsg_info { · 24 unmodified lines | ||
| 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 | |