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:
parent
492da4d56d
commit
29c46d8734
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user