Commit fdb4276a authored by Stefano Garzarella's avatar Stefano Garzarella Committed by David S. Miller

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: b1bba80a ("vsock/vmci: register vmci_transport only when VMCI guest/host are active")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90c56b38
...@@ -2055,7 +2055,7 @@ static bool vmci_check_transport(struct vsock_sock *vsk) ...@@ -2055,7 +2055,7 @@ static bool vmci_check_transport(struct vsock_sock *vsk)
return vsk->transport == &vmci_transport; return vsk->transport == &vmci_transport;
} }
void vmci_vsock_transport_cb(bool is_host) static void vmci_vsock_transport_cb(bool is_host)
{ {
int features; int features;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment