[PATCH 1/6] ipipe: fix build with CONFIG_IPIPE disabled

Philippe Gerum rpm at xenomai.org
Mon Sep 7 15:09:33 CEST 2020


From: Philippe Gerum <rpm at xenomai.org>

Signed-off-by: Philippe Gerum <rpm at xenomai.org>
---
 kernel/fork.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/fork.c b/kernel/fork.c
index e73964a45fb5..a5d3aa5dd4c7 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -845,8 +845,10 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
 #endif
 
 	setup_thread_stack(tsk, orig);
+#ifdef CONFIG_IPIPE
 	__ipipe_init_threadflags(task_thread_info(tsk));
 	__ipipe_init_threadinfo(&task_thread_info(tsk)->ipipe_data);
+#endif
 	clear_user_return_notifier(tsk);
 	clear_tsk_need_resched(tsk);
 	set_task_stack_end_magic(tsk);
-- 
2.26.2




More information about the Xenomai mailing list