From f2d8f1f51e5950049ef16f0fea9ec5dff9d530d7 Mon Sep 17 00:00:00 2001 From: wtopmone Date: Thu, 6 Aug 2026 10:04:16 +0800 Subject: [PATCH 1/2] uloop: timeval boundary check tv_usec range should be [0, 999], then when tv_usec not less than 1000, need to update tv_sec Signed-off-by: wtopmone --- uloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uloop.c b/uloop.c index a3eb0ea..d02158c 100644 --- a/uloop.c +++ b/uloop.c @@ -366,7 +366,7 @@ int uloop_timeout_set(struct uloop_timeout *timeout, int msecs) time->tv_sec += msecs / 1000; time->tv_usec += (msecs % 1000) * 1000; - if (time->tv_usec > 1000000) { + if (time->tv_usec >= 1000000) { time->tv_sec++; time->tv_usec -= 1000000; } From 297b59a10c095a719f74bbc5fafc8884c103b69a Mon Sep 17 00:00:00 2001 From: wtopmone Date: Sat, 8 Aug 2026 10:55:17 +0800 Subject: [PATCH 2/2] blobmsg: add inline for function blobmsg_namlen add inline for function blobmsg_namlen Signed-off-by: wtopmone --- blobmsg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blobmsg.h b/blobmsg.h index b79e7e6..cb0fd15 100644 --- a/blobmsg.h +++ b/blobmsg.h @@ -70,7 +70,7 @@ static inline int blobmsg_type(const struct blob_attr *attr) return blob_id(attr); } -static uint16_t blobmsg_namelen(const struct blobmsg_hdr *hdr) +static inline uint16_t blobmsg_namelen(const struct blobmsg_hdr *hdr) { return be16_to_cpu(hdr->namelen); }