From df3d84b5145e4d5c81b87fbe11f650ce90443098 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Fri, 9 May 2025 12:25:51 +0800 Subject: [PATCH] arm64: fix compile error when CONFIG_SMP is disabled, If the cpu parameter is not used, an error will be reported Signed-off-by: wangmingrong1 --- arch/arm64/src/common/arm64_arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/src/common/arm64_arch.h b/arch/arm64/src/common/arm64_arch.h index 38d9982b4e6..11815ca892b 100644 --- a/arch/arm64/src/common/arm64_arch.h +++ b/arch/arm64/src/common/arm64_arch.h @@ -491,7 +491,7 @@ void arm64_cpu_enable(void); #ifdef CONFIG_SMP uint64_t arm64_get_mpid(int cpu); #else -# define arm64_get_mpid(cpu) (GET_MPIDR() & MPIDR_ID_MASK) +# define arm64_get_mpid(cpu) ((void)(cpu), (GET_MPIDR() & MPIDR_ID_MASK)) #endif /* CONFIG_SMP */ /****************************************************************************