From 5ac638944b79d225aed1632c13162a891ad99766 Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 6 Feb 2023 16:47:57 +0800 Subject: [PATCH] arm/backtrace: fix compile warning common/arm_backtrace_unwind.c: In function 'up_backtrace': common/arm_backtrace_unwind.c:626:27: warning: assignment to 'long unsigned int' from 'uint8_t (*)[]'\ {aka 'unsigned char (*)[]'} makes integer from pointer without a cast [-Wint-conversion] 626 | frame.stack_top = &g_intstacktop; | --- arch/arm/src/common/arm_backtrace_unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/common/arm_backtrace_unwind.c b/arch/arm/src/common/arm_backtrace_unwind.c index 3eb004b0db..22ea4acd17 100644 --- a/arch/arm/src/common/arm_backtrace_unwind.c +++ b/arch/arm/src/common/arm_backtrace_unwind.c @@ -623,7 +623,7 @@ int up_backtrace(struct tcb_s *tcb, # ifdef CONFIG_SMP frame.stack_top = arm_intstack_top(); # else - frame.stack_top = &g_intstacktop; + frame.stack_top = (unsigned long)&g_intstacktop; # endif /* CONFIG_SMP */ #endif /* CONFIG_ARCH_INTERRUPTSTACK > 7 */