[Openamp-rp] [OpenAMP/open-amp] e0dc7b: lib: rpmsg_rpc: fix compilation warning and bad API