mirror of
https://github.com/apache/nuttx.git
synced 2026-09-24 16:56:03 +08:00
Fix Error: armv8-m/arm_cache.c:93:24: error: unused function 'arm_clz' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -90,6 +90,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARMV8M_DCACHE
|
||||
static inline uint32_t arm_clz(unsigned int value)
|
||||
{
|
||||
uint32_t ret;
|
||||
@@ -97,6 +98,7 @@ static inline uint32_t arm_clz(unsigned int value)
|
||||
__asm__ __volatile__ ("clz %0, %1" : "=r"(ret) : "r"(value));
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
|
||||
Reference in New Issue
Block a user