From a8eb1a6f7d0387a00754163dbecd6b79c419882a Mon Sep 17 00:00:00 2001 From: Kody Stribrny Date: Wed, 4 Mar 2026 13:40:14 -0800 Subject: [PATCH] Suppress MISRA 4.7 for SMP taskENTER_CRITICAL_FROM_ISR Suppresses directive 4.7 in the SMP port template as this function does not return error data. --- portable/template/port.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/portable/template/port.c b/portable/template/port.c index 7cac1c991..f852b6c05 100644 --- a/portable/template/port.c +++ b/portable/template/port.c @@ -65,6 +65,9 @@ static void prvTickISR( void ) /* Tasks or ISRs running on other cores may still in critical section in * multiple cores environment. Incrementing tick needs to performed in * critical section. */ + /* MISRA Ref 4.7.1 [Return value shall be checked] */ + /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */ + /* coverity[misra_c_2012_directive_4_7_violation] */ ulPreviousMask = taskENTER_CRITICAL_FROM_ISR(); /* Maintain the tick count. */