This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch releases/12.8
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.8 by this push:
new cdef7da956 arm64/cache: add i/dcache check to avoid build break
cdef7da956 is described below
commit cdef7da956344b9423f6a094903cd0add98f31cf
Author: chao an <[email protected]>
AuthorDate: Wed Dec 18 18:04:29 2024 +0800
arm64/cache: add i/dcache check to avoid build break
arch/arm64/src/common/arm64_cache.c:344:35: error: macro
"up_get_icache_linesize" passed 1 arguments, but takes just 0
344 | size_t up_get_icache_linesize(void)
| ^
Feishu-Id: 4956395133
Signed-off-by: chao an <[email protected]>
---
arch/arm64/src/common/arm64_cache.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/src/common/arm64_cache.c
b/arch/arm64/src/common/arm64_cache.c
index 6b1a05d577..86ecf85363 100644
--- a/arch/arm64/src/common/arm64_cache.c
+++ b/arch/arm64/src/common/arm64_cache.c
@@ -329,6 +329,8 @@ static inline int arm64_dcache_all(int op)
* Public Functions
****************************************************************************/
+#ifdef CONFIG_ARCH_ICACHE
+
/****************************************************************************
* Name: up_get_icache_linesize
*
@@ -478,6 +480,10 @@ void up_disable_icache(void)
ARM64_ISB();
}
+#endif /* CONFIG_ARCH_ICACHE */
+
+#ifdef CONFIG_ARCH_DCACHE
+
/****************************************************************************
* Name: up_invalidate_dcache
*
@@ -765,3 +771,5 @@ void up_coherent_dcache(uintptr_t addr, size_t len)
up_invalidate_icache_all();
}
}
+
+#endif /* CONFIG_ARCH_DCACHE */