History

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.

Krzysztof Kozlowski committed 8 months ago

Commit 90dacbf1 parent 4251dab2 files · +2 −2Browse files

Showing the changes to include/linux/rpmsg (1 of 2 files). Show all

Unified · Split

include/linux/rpmsg/mtk_rpmsg.h+1−1
@@ -25,7 +25,7 @@ struct mtk_rpmsg_info { · 24 unmodified lines
2525 ipi_handler_t handler, void *priv);
2626 void (*unregister_ipi)(struct platform_device *pdev, u32 id);
2727 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);
2929 int ns_ipi_id;
3030 };
3131

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t