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

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

commit 426a5154d9aa86951640c7bed7d5136e137109f3
Author: Bowen Wang <[email protected]>
AuthorDate: Thu Dec 25 21:02:03 2025 +0800

    drivers/rptun: guard nxsched_waitpid with CONFIG_SCHED_WAITPID
    
    nxsched_waitpid is only available when CONFIG_SCHED_WAITPID is
    enabled. Wrap the call with #ifdef to fix the build error when
    this option is disabled.
    
    Signed-off-by: huojianchao <[email protected]>
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/rptun/rptun.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c
index 88595529ff6..8d04d81c769 100644
--- a/drivers/rptun/rptun.c
+++ b/drivers/rptun/rptun.c
@@ -932,7 +932,9 @@ static int rptun_dev_stop(FAR struct remoteproc *rproc)
     {
       priv->stop = true;
       nxsig_kill(priv->pid, SIGKILL);
+#ifdef CONFIG_SCHED_WAITPID
       nxsched_waitpid(priv->pid, NULL, WEXITED);
+#endif
       priv->stop = false;
       priv->pid = -EINVAL;
     }

Reply via email to