forked from luck/tmp_suning_uos_patched
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: b1bba80a43
("vsock/vmci: register vmci_transport only when VMCI guest/host are active")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
90c56b3877
commit
fdb4276aae
|
@ -2055,7 +2055,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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user