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:
Xiang Xiao 2022-11-13 11:07:42 +08:00 committed by Xiang Xiao
parent 492da4d56d
commit 29c46d8734

View File

@ -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