Skip to content

Commit 823c3b3

Browse files
crafcat7xiaoxiang781216
authored andcommitted
armv8m:fix warning up_get_cache_size defined but not used.
Signed-off-by: chenrun1 <[email protected]>
1 parent 665a140 commit 823c3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/src/armv8-m/arm_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ static size_t up_get_cache_linesize(bool icache)
142142

143143
return 1 << sshift;
144144
}
145-
#endif
146145

147146
/****************************************************************************
148147
* Name: up_get_cache_size
@@ -186,6 +185,7 @@ static size_t up_get_cache_size(bool icache)
186185

187186
return sets * ways * line;
188187
}
188+
#endif
189189

190190
/****************************************************************************
191191
* Public Functions

0 commit comments

Comments
 (0)