This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 07c7ea040cf70214c0fadcfe62773c92b0090eb8 Author: ouyangxiangzhen <[email protected]> AuthorDate: Mon Oct 27 15:52:41 2025 +0800 spinlock: Fix MISRA C-2012 Rule 10.4. This commit fixed MISRA C-2012 Rule 10.4. Assisted-By: mimo-v2.6-pro Signed-off-by: ouyangxiangzhen <[email protected]> --- include/nuttx/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h index 565ab47258b..89cc7f65c1a 100644 --- a/include/nuttx/spinlock.h +++ b/include/nuttx/spinlock.h @@ -128,7 +128,7 @@ pid_t spinlock_get_holder(FAR spinlock_debug_t *info); #define spin_lock_init(l) \ do \ { \ - if (sizeof(*(l)) > 0) \ + if (sizeof(*(l)) > 0u) \ { \ memset((FAR void *)(l), 0, sizeof(*(l))); \ } \
