You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/01/09 10:07:59 UTC

[incubator-nuttx-apps] branch master updated: testing/ostest: set the default value to TESTING_OSTEST_FPUSIZE

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

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


The following commit(s) were added to refs/heads/master by this push:
     new cb988a8  testing/ostest: set the default value to TESTING_OSTEST_FPUSIZE
cb988a8 is described below

commit cb988a8394b72564adaaef9b5ba5e4a5cebf7692
Author: chao.an <an...@xiaomi.com>
AuthorDate: Fri Jan 7 15:29:13 2022 +0800

    testing/ostest: set the default value to TESTING_OSTEST_FPUSIZE
    
    .config:2053:warning: symbol value '' invalid for TESTING_OSTEST_FPUSIZE
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 testing/ostest/Kconfig | 1 +
 testing/ostest/fpu.c   | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/testing/ostest/Kconfig b/testing/ostest/Kconfig
index d007a29..d6a50d3 100644
--- a/testing/ostest/Kconfig
+++ b/testing/ostest/Kconfig
@@ -88,6 +88,7 @@ if !TESTING_OSTEST_FPUTESTDISABLE
 
 config TESTING_OSTEST_FPUSIZE
 	int "Size of floating point register save area"
+	default 0
 
 config TESTING_OSTEST_FPULOOPS
 	int "Number of FPU test loops"
diff --git a/testing/ostest/fpu.c b/testing/ostest/fpu.c
index b7d1946..f9cf5db 100644
--- a/testing/ostest/fpu.c
+++ b/testing/ostest/fpu.c
@@ -43,11 +43,13 @@
 #undef HAVE_FPU
 #ifdef CONFIG_ARCH_FPU
 #  if defined(CONFIG_TESTING_OSTEST_FPUSIZE) && \
+      (CONFIG_TESTING_OSTEST_FPUSIZE != 0) && \
       defined(CONFIG_SCHED_WAITPID) && \
       defined(CONFIG_BUILD_FLAT)
 #    define HAVE_FPU 1
 #  else
-#    ifndef CONFIG_TESTING_OSTEST_FPUSIZE
+#    if defined(CONFIG_TESTING_OSTEST_FPUSIZE) && \
+        (CONFIG_TESTING_OSTEST_FPUSIZE == 0)
 #      warning "FPU test not built; CONFIG_TESTING_OSTEST_FPUSIZE not defined"
 #    endif
 #    ifndef CONFIG_SCHED_WAITPID