From 0b26b04081b0b07e3a36d88d70a6c0e613d9f673 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Wed, 4 Sep 2024 20:30:37 +0800 Subject: [PATCH] ostest: smp_call only valid in FLAT BUILD Signed-off-by: hujun5 --- testing/ostest/ostest_main.c | 2 +- testing/ostest/smp_call.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c index 7c2aca1e7..88a7de927 100644 --- a/testing/ostest/ostest_main.c +++ b/testing/ostest/ostest_main.c @@ -596,7 +596,7 @@ static int user_main(int argc, char *argv[]) vfork_test(); #endif -#ifdef CONFIG_SMP_CALL +#if defined(CONFIG_SMP_CALL) && defined(CONFIG_BUILD_FLAT) printf("\nuser_main: smp call test\n"); smp_call_test(); #endif diff --git a/testing/ostest/smp_call.c b/testing/ostest/smp_call.c index 6a9c5f36d..020d4a51d 100644 --- a/testing/ostest/smp_call.c +++ b/testing/ostest/smp_call.c @@ -29,6 +29,7 @@ #include +#if defined(CONFIG_SMP_CALL) && defined(CONFIG_BUILD_FLAT) /**************************************************************************** * Private Functions ****************************************************************************/ @@ -116,3 +117,4 @@ void smp_call_test(void) printf("smp_call_test: Test success\n"); } +#endif