From dd9059203daf12face37491f24c97fd4f2f3f03f Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Sat, 29 Feb 2020 14:41:50 +0900 Subject: [PATCH] testing: ostest: Fix a warning in cond.c for non-SMP configurations. Signed-off-by: Masayuki Ishikawa --- testing/ostest/cond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/ostest/cond.c b/testing/ostest/cond.c index 5a380664a..f40834529 100644 --- a/testing/ostest/cond.c +++ b/testing/ostest/cond.c @@ -181,7 +181,7 @@ static void *thread_signaler(void *parameter) signaler_nerrors++; } -#if CONFIG_SMP_NCPUS > 1 +#if defined(CONFIG_SMP) && (CONFIG_SMP_NCPUS > 1) /* Workaround for SMP: * In multi-core environment, thread_signaler would be excecuted prior * to the thread_waiter, even though priority of thread_signaler is