From 823c3b32e77d5cda559b90fe3c175360b64ae0ad Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Thu, 8 Jun 2023 18:44:26 +0800 Subject: [PATCH] armv8m:fix warning up_get_cache_size defined but not used. Signed-off-by: chenrun1 --- arch/arm/src/armv8-m/arm_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/armv8-m/arm_cache.c b/arch/arm/src/armv8-m/arm_cache.c index c4d0ec1ccc..35aa14d992 100644 --- a/arch/arm/src/armv8-m/arm_cache.c +++ b/arch/arm/src/armv8-m/arm_cache.c @@ -142,7 +142,6 @@ static size_t up_get_cache_linesize(bool icache) return 1 << sshift; } -#endif /**************************************************************************** * Name: up_get_cache_size @@ -186,6 +185,7 @@ static size_t up_get_cache_size(bool icache) return sets * ways * line; } +#endif /**************************************************************************** * Public Functions