mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
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 <wangmingrong1@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
f445652a35
commit
df3d84b514
@@ -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 */
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user