You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/22 20:37:04 UTC

[incubator-nuttx] branch master updated: binfmt/exec: fix build break in kernel build

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a07ad7a  binfmt/exec: fix build break in kernel build
a07ad7a is described below

commit a07ad7a1155993928ae11a004d897e2b94f95e39
Author: chao.an <an...@xiaomi.com>
AuthorDate: Fri Feb 21 22:12:25 2020 +0800

    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 b280a26..b2d0dec 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