From 8f56c7a2d4b3abf10d43b54f492c6bd9ff99dc2b Mon Sep 17 00:00:00 2001 From: Matt Joyce Date: Wed, 17 Jul 2024 14:54:41 +0200 Subject: [PATCH] bsps/arm/include: Silence warning in CMSIS file Avoid a warning about missing void. Co-authored-by: Christian Mauderer --- bsps/arm/include/mpu_armv8.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bsps/arm/include/mpu_armv8.h b/bsps/arm/include/mpu_armv8.h index 03a04330fd..312d6c15e6 100644 --- a/bsps/arm/include/mpu_armv8.h +++ b/bsps/arm/include/mpu_armv8.h @@ -1,3 +1,6 @@ +/* + * The file was modified by RTEMS contributors. + */ /****************************************************************************** * @file mpu_armv8.h * @brief CMSIS MPU API for Armv8-M and Armv8.1-M MPU @@ -190,7 +193,11 @@ typedef struct { \brief Read MPU Type Register \return Number of MPU regions */ +#ifndef __rtems__ __STATIC_INLINE uint32_t ARM_MPU_TYPE() +#else /* __rtems__ */ +__STATIC_INLINE uint32_t ARM_MPU_TYPE(void) +#endif /* __rtems__ */ { return ((MPU->TYPE) >> 8); }