This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 54e7fe4ae2cfe1e9518b3de1c1726be7838d3eeb Author: buxiasen <[email protected]> AuthorDate: Fri Sep 5 15:20:07 2025 +0800 arch/armv8-m/l2cc: add UNUSED to fix if ARCH_L2CACHE not enabled add UNUSED to fix if ARCH_L2CACHE not enabled Signed-off-by: buxiasen <[email protected]> --- arch/arm/src/armv8-m/l2cc.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/armv8-m/l2cc.h b/arch/arm/src/armv8-m/l2cc.h index cd56a43b271..275ae668d9b 100644 --- a/arch/arm/src/armv8-m/l2cc.h +++ b/arch/arm/src/armv8-m/l2cc.h @@ -26,6 +26,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/compiler.h> #ifdef CONFIG_ARCH_L2CACHE @@ -247,11 +248,11 @@ void l2cc_flush(uint32_t startaddr, uint32_t endaddr); # define l2cc_disable() # define l2cc_sync() # define l2cc_invalidate_all() -# define l2cc_invalidate(s,e) +# define l2cc_invalidate(s,e) UNUSED(s) # define l2cc_clean_all() -# define l2cc_clean(s,e) +# define l2cc_clean(s,e) UNUSED(s) # define l2cc_flush_all() -# define l2cc_flush(s,e) +# define l2cc_flush(s,e) UNUSED(s) #endif /* CONFIG_ARCH_L2CACHE */ #endif /* __ARCH_ARM_SRC_ARMV8_M_L2CC_H */
