Skip to content

Commit 28b9364

Browse files
moonlight83340seyoungjeong
authored andcommitted
arch: arm: core: cortex_a_r: mark unused function argument
Use ARG_UNUSED() to mark unused function argument. Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
1 parent 6aae53b commit 28b9364

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/arm/core/cortex_a_r/cache.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,16 @@ int arch_icache_flush_and_invd_all(void)
203203

204204
int arch_icache_flush_range(void *start_addr, size_t size)
205205
{
206+
ARG_UNUSED(start_addr);
207+
ARG_UNUSED(size);
208+
206209
return -ENOTSUP;
207210
}
208211

209212
int arch_icache_invd_range(void *start_addr, size_t size)
210213
{
214+
ARG_UNUSED(start_addr);
215+
ARG_UNUSED(size);
211216
/* Cortex A/R do have the ICIMVAU operation to selectively invalidate
212217
* the instruction cache, but not currently supported by CMSIS.
213218
* For now, invalidate the entire cache.
@@ -219,6 +224,9 @@ int arch_icache_invd_range(void *start_addr, size_t size)
219224

220225
int arch_icache_flush_and_invd_range(void *start_addr, size_t size)
221226
{
227+
ARG_UNUSED(start_addr);
228+
ARG_UNUSED(size);
229+
222230
return -ENOTSUP;
223231
}
224232

0 commit comments

Comments
 (0)