[Devel] [PATCH RHEL7 COMMIT] ms/vsock/vmci: make vmci_vsock_cb_host_called static

Vasily Averin vvs at virtuozzo.com
Thu Apr 22 03:41:42 MSK 2021


The commit is pushed to "branch-rh7-3.10.0-1160.21.1.vz7.174.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.21.1.vz7.174.11
------>
commit e1a04db18f1a78bbf38c9fcbd5594200c644c08e
Author: Mao Wenan <maowenan at huawei.com>
Date:   Thu Apr 22 03:41:42 2021 +0300

    ms/vsock/vmci: make vmci_vsock_cb_host_called static
    
    When using make C=2 drivers/misc/vmw_vmci/vmci_driver.o
    to compile, below warning can be seen:
    drivers/misc/vmw_vmci/vmci_driver.c:33:6: warning:
    symbol 'vmci_vsock_cb_host_called' was not declared. Should it be static?
    
    This patch make symbol vmci_vsock_cb_host_called static.
    
    Fixes: b1bba80a4376 ("vsock/vmci: register vmci_transport only when VMCI guest/host are active")
    Reported-by: Hulk Robot <hulkci at huawei.com>
    Signed-off-by: Mao Wenan <maowenan at huawei.com>
    Reported-by: kbuild test robot <lkp at intel.com>
    Signed-off-by: Stefano Garzarella <sgarzare at redhat.com>
    Signed-off-by: David S. Miller <davem at davemloft.net>
    
    https://jira.sw.ru/browse/PSBM-128702
    (cherry picked from commit 2be8ca97d07e1133e81cd3977bd1f94058b65489)
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 drivers/misc/vmw_vmci/vmci_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/vmw_vmci/vmci_driver.c b/drivers/misc/vmw_vmci/vmci_driver.c
index 64e540c..6da963f 100644
--- a/drivers/misc/vmw_vmci/vmci_driver.c
+++ b/drivers/misc/vmw_vmci/vmci_driver.c
@@ -38,7 +38,7 @@ static bool vmci_host_personality_initialized;
 
 static DEFINE_MUTEX(vmci_vsock_mutex); /* protects vmci_vsock_transport_cb */
 static vmci_vsock_cb vmci_vsock_transport_cb;
-bool vmci_vsock_cb_host_called;
+static bool vmci_vsock_cb_host_called;
 
 /*
  * vmci_get_context_id() - Gets the current context ID.


More information about the Devel mailing list