[Devel] [PATCH RHEL10 COMMIT] fixup! connector: add VE SS hook

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 5 21:32:24 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit a0739f10700d3c959961ada371acd09dfe443817
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date:   Tue Jun 2 21:10:54 2026 +0000

    fixup! connector: add VE SS hook
    
    ve_hook_register is a no-op when !CONFIG_VE, but it still
    needs &cn_ss_hook to be a valid expression.
    
    struct ve_hook is not defined when !CONFIG_VE, so create a dummy
    variable cn_ss_hook in such case just to make compiler happy.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-130116
    
    Feature: !CONFIG_VE build
    Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
    Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
 drivers/connector/connector.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index 47f7fb284540b..39a697803d0f1 100644
--- a/drivers/connector/connector.c
+++ b/drivers/connector/connector.c
@@ -383,12 +383,17 @@ static void cn_fini_ve(void *data)
 	ve->cn = NULL;
 }
 
+#ifdef CONFIG_VE
 static struct ve_hook cn_ss_hook = {
 	.init = cn_init_ve,
 	.fini = cn_fini_ve,
 	.priority = HOOK_PRIO_DEFAULT,
 	.owner = THIS_MODULE,
 };
+#else
+/* When !CONFIG_VE ve_hook_register is a no-op */
+static int __maybe_unused cn_ss_hook;
+#endif
 
 static int cn_init(void)
 {


More information about the Devel mailing list