You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/17 13:36:54 UTC

[incubator-nuttx] branch master updated: arch/sim: Fix multiple definition of `g_cpu_wait' and `g_cpu_paused'

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new d938b50  arch/sim: Fix multiple definition of `g_cpu_wait' and `g_cpu_paused'
d938b50 is described below

commit d938b50969195a7829635a13ecd34f456b9ff76e
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun May 17 13:53:33 2020 +0800

    arch/sim: Fix multiple definition of `g_cpu_wait' and `g_cpu_paused'
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: I62d81582d58c9156ee8a56207b479dad7d6d18df
---
 arch/sim/src/sim/up_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sim/src/sim/up_internal.h b/arch/sim/src/sim/up_internal.h
index 7208e31..de35b8c 100644
--- a/arch/sim/src/sim/up_internal.h
+++ b/arch/sim/src/sim/up_internal.h
@@ -211,8 +211,8 @@
  * so that it will be ready for the next pause operation.
  */
 
-volatile spinlock_t g_cpu_wait[CONFIG_SMP_NCPUS] SP_SECTION;
-volatile spinlock_t g_cpu_paused[CONFIG_SMP_NCPUS] SP_SECTION;
+extern volatile spinlock_t g_cpu_wait[CONFIG_SMP_NCPUS] SP_SECTION;
+extern volatile spinlock_t g_cpu_paused[CONFIG_SMP_NCPUS] SP_SECTION;
 #endif
 
 /****************************************************************************