Skip to content

Commit

Permalink
rpmsg/rpmsg_ping: tenative fix for build issue
Browse files Browse the repository at this point in the history
rpmsg_ping.c is blocking CI checks for RPTUN related patches like #11673.
this patch simply fix the compilation issue of rpmsg_ping.c:

- line 191: overflow conversion from "long unsigned int" to "unsigned int"
- line 226: "sendlen" used uninitialized

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
  • Loading branch information
yf13 authored and acassis committed Feb 8, 2024
1 parent 0967eb4 commit b258680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rpmsg/rpmsg_ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ static void rpmsg_ping_logout_rate(uint64_t len, clock_t avg)
int rpmsg_ping(FAR struct rpmsg_endpoint *ept,
FAR const struct rpmsg_ping_s *ping)
{
clock_t min = ULONG_MAX;
clock_t min = UINT_MAX;
clock_t max = 0;
uint64_t total = 0;
uint32_t buf_len = 0;
int send_len;
int send_len = 0;
int i;

if (!ept || !ping || ping->times <= 0)
Expand Down

0 comments on commit b258680

Please sign in to comment.