[Devel] [PATCH RHEL7 COMMIT] ms/vsock/vmci: make vmci_vsock_transport_cb() static

Vasily Averin vvs at virtuozzo.com
Thu Apr 22 03:42:07 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 503ea46cdc7c2bffddf7fdc2e21d0d3ccd0bc831
Author: Stefano Garzarella <sgarzare at redhat.com>
Date:   Thu Apr 22 03:42:06 2021 +0300

    ms/vsock/vmci: make vmci_vsock_transport_cb() static
    
    Fix the following gcc-9.3 warning when building with 'make W=1':
        net/vmw_vsock/vmci_transport.c:2058:6: warning: no previous prototype
            for ‘vmci_vsock_transport_cb’ [-Wmissing-prototypes]
         2058 | void vmci_vsock_transport_cb(bool is_host)
              |      ^~~~~~~~~~~~~~~~~~~~~~~
    
    Fixes: b1bba80a4376 ("vsock/vmci: register vmci_transport only when VMCI guest/host are active")
    Reported-by: kernel 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 fdb4276aae1100aa13f955eff6c944a8200a15ac)
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 net/vmw_vsock/vmci_transport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index 999d338..0f4c74f 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -2034,7 +2034,7 @@ static bool vmci_check_transport(struct vsock_sock *vsk)
 	return vsk->transport == &vmci_transport;
 }
 
-void vmci_vsock_transport_cb(bool is_host)
+static void vmci_vsock_transport_cb(bool is_host)
 {
 	int features;
 


More information about the Devel mailing list