Skip to contentSkip to conversation

vsock/vmci: make vmci_vsock_cb_host_called static

PATCH Applied Stefano Garzarella 2 participants 2 messages Nov 20, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vsock/vmci: make vmci_vsock_cb_host_called static

From: Mao Wenan <[email protected]>

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")

---
Hi Dave,
do you think it could go through net-next since it solves a problem introduced by "vsock: add multi-transports support" series?

Adding R-b from "kbuild test robot" that found the same issue.

Thanks,
Stefano

---
 drivers/misc/vmw_vmci/vmci_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/vmw_vmci/vmci_driver.c +1 -1
index 95fed4664a2d..cbb706dabede 100644
@@ -30,7 +30,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.
Signature · 1 line
2.21.0
maintainer Applied
#1 lore raw

From: Stefano Garzarella <[email protected]>
Date: Wed, 20 Nov 2019 16:56:34 +0100

Quoted 14 lines

From: Mao Wenan <[email protected]>

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")
Quoted 6 lines

---
Hi Dave,
do you think it could go through net-next since it solves a problem introduced by "vsock: add multi-transports support" series?

Adding R-b from "kbuild test robot" that found the same issue.

Applied to net-next.