* [PATCH net] vsock/vmci: make vmci_vsock_transport_cb() static
@ 2020-06-05 15:12 Stefano Garzarella
2020-06-05 20:19 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Garzarella @ 2020-06-05 15:12 UTC (permalink / raw)
To: davem
Cc: linux-kernel, Stefano Garzarella, netdev, Jorgen Hansen, Jakub Kicinski
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@intel.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.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 4b8b1150a738..8b65323207db 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -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;
--
2.25.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] vsock/vmci: make vmci_vsock_transport_cb() static
2020-06-05 15:12 [PATCH net] vsock/vmci: make vmci_vsock_transport_cb() static Stefano Garzarella
@ 2020-06-05 20:19 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-06-05 20:19 UTC (permalink / raw)
To: sgarzare; +Cc: linux-kernel, netdev, jhansen, kuba
From: Stefano Garzarella <sgarzare@redhat.com>
Date: Fri, 5 Jun 2020 17:12:41 +0200
> 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@intel.com>
> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-05 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 15:12 [PATCH net] vsock/vmci: make vmci_vsock_transport_cb() static Stefano Garzarella
2020-06-05 20:19 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.