Skip to content

Commit b5a9229

Browse files
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.
1 parent 1d86b97 commit b5a9229

File tree

20 files changed

+6
-61
lines changed

20 files changed

+6
-61
lines changed

portable/ARMv8M/non_secure/portable/GCC/ARM_CM23/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/GCC/ARM_CM23_NTZ/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/GCC/ARM_CM33/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/IAR/ARM_CM23/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/IAR/ARM_CM23_NTZ/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/IAR/ARM_CM33/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/ARMv8M/non_secure/portable/IAR/ARM_CM33_NTZ/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/GCC/ARM_CM23/non_secure/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

portable/GCC/ARM_CM23_NTZ/non_secure/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
* @param[in] pxTCB The TCB of the task being deleted.
265265
*/
266266
#define portCLEAN_UP_TCB( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267-
#else
268-
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
269-
#define portCLEAN_UP_TCB( pxTCB )
270267
#endif /* configENABLE_TRUSTZONE */
271268
/*-----------------------------------------------------------*/
272269

0 commit comments

Comments
 (0)