This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pru-software-support-package: pru_rpmsg_send missing 'const'

The function signature for pru_rpmsg_send (included in pru-software-support-package) is currently:

int16_t pru_rpmsg_send(struct pru_rpmsg_transport *transport, uint32_t src, uint32_t dst, void *data, uint16_t len);

However, this causes a compiler warning when passing in const data.

argument of type "const uint8_t *" is incompatible with parameter of type "void *"

This function signature can be updated to the following, which resolves the issue:

int16_t pru_rpmsg_send(struct pru_rpmsg_transport *transport, uint32_t src, uint32_t dst, const void *data, uint16_t len);