mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 13:37:18 +00:00
Fix violations of MISRA C:2012 Rule 10.4 (operand of unsigned and signed) in cancellation point handling code. Changed all CANCEL_FLAG_* macro definitions and their usage to use unsigned literals (1u instead of 1) to ensure consistent unsigned arithmetic when performing bitwise operations. This eliminates mixed signed/unsigned operand violations in: - CANCEL_FLAG_NONCANCELABLE - CANCEL_FLAG_CANCEL_ASYNC - CANCEL_FLAG_CANCEL_PENDING The changes affect cancellation point entry/exit logic, cancellation state management, and cancellation type handling across both kernel and libc implementations. Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> |
||
|---|---|---|
| .. | ||
| clock_getcpuclockid.c | ||
| clock_perf.c | ||
| CMakeLists.txt | ||
| Make.defs | ||
| sched_backtrace.c | ||
| sched_cpucount.c | ||
| sched_dumpstack.c | ||
| sched_getprioritymax.c | ||
| sched_getprioritymin.c | ||
| task_cancelpt.c | ||
| task_getpid.c | ||
| task_gettid.c | ||
| task_setcancelstate.c | ||
| task_setcanceltype.c | ||
| task_startup.c | ||
| task_testcancel.c | ||