mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Warning fixes. (#356)
* Use cast to fix warnings. * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports. When these are undefined, the default empty definition is defined in FreeRTOS.h.
This commit is contained in:
parent
1d86b973aa
commit
b5a9229563
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -264,9 +264,6 @@
|
||||||
* @param[in] pxTCB The TCB of the task being deleted.
|
* @param[in] pxTCB The TCB of the task being deleted.
|
||||||
*/
|
*/
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB )
|
|
||||||
#endif /* configENABLE_TRUSTZONE */
|
#endif /* configENABLE_TRUSTZONE */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -144,8 +144,6 @@ extern volatile unsigned int ulCriticalNesting;
|
||||||
#if defined( __MW__ )
|
#if defined( __MW__ )
|
||||||
extern void task_end_hook( void * pxTCB );
|
extern void task_end_hook( void * pxTCB );
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) task_end_hook( ( void * ) pxTCB )
|
#define portCLEAN_UP_TCB( pxTCB ) task_end_hook( ( void * ) pxTCB )
|
||||||
#else
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void vPortYield( void );
|
void vPortYield( void );
|
||||||
|
|
2
portable/ThirdParty/GCC/ARC_v1/portmacro.h
vendored
2
portable/ThirdParty/GCC/ARC_v1/portmacro.h
vendored
|
@ -138,8 +138,6 @@
|
||||||
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() do {} while( 0 ) /* we use the timer */
|
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() do {} while( 0 ) /* we use the timer */
|
||||||
#define portALT_GET_RUN_TIME_COUNTER_VALUE( dest ) ( dest = xTickCount )
|
#define portALT_GET_RUN_TIME_COUNTER_VALUE( dest ) ( dest = xTickCount )
|
||||||
|
|
||||||
#define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB
|
|
||||||
|
|
||||||
void vPortYield( void );
|
void vPortYield( void );
|
||||||
void vPortYieldFromIsr( void );
|
void vPortYieldFromIsr( void );
|
||||||
|
|
||||||
|
|
3
portable/ThirdParty/XCC/Xtensa/portmacro.h
vendored
3
portable/ThirdParty/XCC/Xtensa/portmacro.h
vendored
|
@ -182,9 +182,6 @@ void exit(int);
|
||||||
|
|
||||||
#if (XT_USE_THREAD_SAFE_CLIB > 0u) && (XSHAL_CLIB == XTHAL_CLIB_XCLIB)
|
#if (XT_USE_THREAD_SAFE_CLIB > 0u) && (XSHAL_CLIB == XTHAL_CLIB_XCLIB)
|
||||||
extern void vPortClibInit(void);
|
extern void vPortClibInit(void);
|
||||||
|
|
||||||
// No cleanup necessary at this time.
|
|
||||||
#define portCLEAN_UP_TCB(pxTCB)
|
|
||||||
#endif // XCLIB support
|
#endif // XCLIB support
|
||||||
|
|
||||||
#if (XT_USE_THREAD_SAFE_CLIB > 0u) && (XSHAL_CLIB == XTHAL_CLIB_NEWLIB)
|
#if (XT_USE_THREAD_SAFE_CLIB > 0u) && (XSHAL_CLIB == XTHAL_CLIB_NEWLIB)
|
||||||
|
|
12
timers.c
12
timers.c
|
@ -462,7 +462,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pxTimer->ucStatus &= ~tmrSTATUS_IS_AUTORELOAD;
|
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_AUTORELOAD );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
taskEXIT_CRITICAL();
|
taskEXIT_CRITICAL();
|
||||||
|
@ -550,7 +550,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Call the timer callback. */
|
/* Call the timer callback. */
|
||||||
|
@ -829,7 +829,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Call the timer callback. */
|
/* Call the timer callback. */
|
||||||
|
@ -846,7 +846,7 @@
|
||||||
case tmrCOMMAND_STOP:
|
case tmrCOMMAND_STOP:
|
||||||
case tmrCOMMAND_STOP_FROM_ISR:
|
case tmrCOMMAND_STOP_FROM_ISR:
|
||||||
/* The timer has already been removed from the active list. */
|
/* The timer has already been removed from the active list. */
|
||||||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case tmrCOMMAND_CHANGE_PERIOD:
|
case tmrCOMMAND_CHANGE_PERIOD:
|
||||||
|
@ -876,7 +876,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */
|
#else /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */
|
||||||
|
@ -885,7 +885,7 @@
|
||||||
* could not have been dynamically allocated. So there is
|
* could not have been dynamically allocated. So there is
|
||||||
* no need to free the memory - just mark the timer as
|
* no need to free the memory - just mark the timer as
|
||||||
* "not active". */
|
* "not active". */
|
||||||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
|
||||||
}
|
}
|
||||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue