From a07ad7a1155993928ae11a004d897e2b94f95e39 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Fri, 21 Feb 2020 22:12:25 +0800 Subject: [PATCH] binfmt/exec: fix build break in kernel build --- binfmt/binfmt_exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binfmt/binfmt_exec.c b/binfmt/binfmt_exec.c index b280a26594..b2d0dec37b 100644 --- a/binfmt/binfmt_exec.c +++ b/binfmt/binfmt_exec.c @@ -139,10 +139,12 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv, bin->priority = attr->priority; } +#ifndef CONFIG_BUILD_KERNEL if (attr->stacksize > 0) { bin->stacksize = attr->stacksize; } +#endif } /* Disable pre-emption so that the executed module does