From cb988a8394b72564adaaef9b5ba5e4a5cebf7692 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Fri, 7 Jan 2022 15:29:13 +0800 Subject: [PATCH] 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 --- 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 d007a296b..d6a50d369 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 b7d1946ff..f9cf5dbdf 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