[Devel] [VZ10 14/21] ve/kthread: Remove ifdef CONFIG_VE

Vladimir Riabchun vladimir.riabchun at virtuozzo.com
Thu May 7 22:10:26 MSK 2026


struct kthread_create_work is used in functions not covered by CONFIG_VE.

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
 kernel/kthread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/kthread.c b/kernel/kthread.c
index eed51fdd5cc1..3328d79ce60b 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -432,7 +432,7 @@ static void create_kthread(struct kthread_create_info *create)
 	return create_kthread_flags(create, 0);
 }
 
-#ifdef CONFIG_VE
+/* CONFIG_VE */
 struct kthread_create_work {
 	struct kthread_work work;
 	struct kthread_create_info *info;
@@ -446,8 +446,8 @@ static void kthread_create_fn(struct kthread_work *w)
 
 	create_kthread_flags(work->info, work->flags);
 }
+/* CONFIG_VE */
 
-#endif
 static void kthread_create_add(struct kthread_create_info *create)
 {
 	spin_lock(&kthread_create_lock);
-- 
2.43.0



More information about the Devel mailing list