Skip to content

Commit

Permalink
vsock/vmci: make vmci_vsock_cb_host_called static
Browse files Browse the repository at this point in the history
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: b1bba80 ("vsock/vmci: register vmci_transport only when VMCI guest/host are active")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mao Wenan authored and David S. Miller committed Nov 20, 2019
1 parent e07e754 commit 2be8ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/vmw_vmci/vmci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2be8ca9

Please sign in to comment.