You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2021/08/04 16:18:15 UTC

[incubator-nuttx] branch master updated: arch:xtensa_testset: remove include arch/spinlock.h

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

aguettouche 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 9a34705  arch:xtensa_testset: remove include arch/spinlock.h
9a34705 is described below

commit 9a34705b80d4aeaeaf630958021d5fee68aa9391
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Wed Aug 4 16:24:38 2021 +0800

    arch:xtensa_testset: remove include arch/spinlock.h
    
    In config with no "CONFIG_SPINLOCK", include arch/spinlock.h will lead to
    build error as multi definition with spinlock_t. Nuttx/spinlock.h will
    include arch/spinlock.h when needed.
    
    Change-Id: I33b48503f679ec79af3a0ef1f0fb1536aaf1ce7c
---
 arch/xtensa/src/common/xtensa_testset.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/xtensa/src/common/xtensa_testset.c b/arch/xtensa/src/common/xtensa_testset.c
index 8853c98..35ad869 100644
--- a/arch/xtensa/src/common/xtensa_testset.c
+++ b/arch/xtensa/src/common/xtensa_testset.c
@@ -25,7 +25,6 @@
 #include <nuttx/config.h>
 
 #include <nuttx/spinlock.h>
-#include <arch/spinlock.h>
 
 #include "xtensa.h"