Skip to content

Commit

Permalink
Add macro guard to removed definition missing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kar-rahul-aws committed Dec 16, 2024
1 parent 974351f commit 1575800
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 84 deletions.
8 changes: 4 additions & 4 deletions portable/ARMv8M/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0*/

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0*/
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM23/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0*/

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0*/
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM23_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0*/

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0*/
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM33/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM33_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM35P/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM35P_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM55/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM55_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM85/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
8 changes: 4 additions & 4 deletions portable/GCC/ARM_CM85_NTZ/non_secure/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef void ( * portISR_t )( void );
*/
static void prvTaskExitError( void );

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

/**
* @brief Extract MPU region's access permissions from the Region Base Address
Expand All @@ -409,7 +409,7 @@ static void prvTaskExitError( void );
* @return uint32_t Access permissions.
*/
static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) PRIVILEGED_FUNCTION;
#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */

#if ( configENABLE_MPU == 1 )

Expand Down Expand Up @@ -871,7 +871,7 @@ static void prvTaskExitError( void )
}
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
#if ( ( configENABLE_MPU == 1 ) && ( configUSE_MPU_WRAPPERS_V1 == 0 ) )

static uint32_t prvGetRegionAccessPermissions( uint32_t ulRBARValue ) /* PRIVILEGED_FUNCTION */
{
Expand All @@ -890,7 +890,7 @@ static void prvTaskExitError( void )
return ulAccessPermissions;
}

#endif /* configENABLE_MPU */
#endif /* configENABLE_MPU == 1 && configUSE_MPU_WRAPPERS_V1 == 0 */
/*-----------------------------------------------------------*/

#if ( configENABLE_MPU == 1 )
Expand Down
Loading

0 comments on commit 1575800

Please sign in to comment.