[Devel] [VZ10 16/21] ve/tty: Use vtty_alloc_tty_struct only when CONFIG_VE
Vladimir Riabchun
vladimir.riabchun at virtuozzo.com
Thu May 7 22:10:28 MSK 2026
https://virtuozzo.atlassian.net/browse/VSTOR-130116
Feature: !CONFIG_VE build
Fixes: a35101ad1bc3 ("vtty: fix slave peer lockdep annotation")
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
drivers/tty/tty_io.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 0d1e4ffe2bec..a87d6e879d6a 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -3214,7 +3214,11 @@ struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx)
tty->dev = tty_get_device(tty);
#ifdef CONFIG_TTY
+#ifdef CONFIG_VE
vtty_alloc_tty_struct(driver, tty);
+#else
+ tty_set_lock_subclass(tty);
+#endif
#endif
return tty;
}
--
2.43.0
More information about the Devel
mailing list