Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: e0dc7bd1f2a7a8a8be573fe28f4c0748920f2262 https://github.com/OpenAMP/open-amp/commit/e0dc7bd1f2a7a8a8be573fe28f4c07489... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2024-05-07 (Tue, 07 May 2024)
Changed paths: M lib/include/openamp/rpmsg_rpc_client_server.h M lib/service/rpmsg/rpc/rpmsg_rpc_client.c
Log Message: ----------- lib: rpmsg_rpc: fix compilation warning and bad API
Fix following warning by updating bad rpc_id parameter type in the rpmsg_rpc_client_send() API. Align the rpc_id type to the one used in rpmsg_rpc_server_send().
/github/workspace/lib/service/rpmsg/rpc/rpmsg_rpc_client.c:60:9: error: ‘memcpy’ reading 8 bytes from a region of size 4 [-Werror=stringop-overread] 1286 60 | memcpy(tmpbuf, &rpc_id, MAX_FUNC_ID_LEN); 1287 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1288 /github/workspace/lib/service/rpmsg/rpc/rpmsg_rpc_client.c:51:40: note: source object ‘rpc_id’ of size 4 1289 51 | unsigned int rpc_id, void *request_param, 1290 | ~~~~~~~~~~~~~^~~~~~
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
openamp-rp@lists.openampproject.org