Skip to content

Commit 3748fa3

Browse files
Gaetan PerrotChromeos LUCI
authored andcommitted
arch: arm: core: cortex_a_r: mark unused function argument
Use ARG_UNUSED() to mark unused function argument. (cherry picked from commit 3aa477b) Original-Signed-off-by: Gaetan Perrot <[email protected]> GitOrigin-RevId: 3aa477b Cr-Build-Id: 8709847665304561137 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8709847665304561137 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Ife9b9fa14e18a86755b7a7033c2205390878aeec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6717682 Commit-Queue: ChromeOS Copybot <[email protected]> Tested-by: ChromeOS Copybot <[email protected]> Bot-Commit: ChromeOS Copybot <[email protected]>
1 parent d239b1b commit 3748fa3

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)