apps/kernel_sample: fix async io test
authorOleg Lyovin <o.lyovin@partner.samsung.com>
Tue, 18 Jul 2017 08:32:42 +0000 (11:32 +0300)
committerOleg Lyovin <o.lyovin@partner.samsung.com>
Tue, 15 Aug 2017 10:24:54 +0000 (13:24 +0300)
aio.c compiles only when CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO is enable,
so in order to use it's functions we need to check whether
CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO is enabled.

Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
apps/examples/kernel_sample/kernel_sample_main.c

index f3e6efd..fe5f3ff 100644 (file)
@@ -323,7 +323,7 @@ static int user_main(int argc, char *argv[])
                check_test_memory_usage();
 #endif
 
-#ifdef CONFIG_FS_AIO
+#if defined(CONFIG_FS_AIO) && defined(CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO)
                /* Check asynchronous I/O */
 
                printf("\nuser_main: AIO test\n");