[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191119032534.52090-1-maowenan@huawei.com>
Date: Tue, 19 Nov 2019 11:25:34 +0800
From: Mao Wenan <maowenan@...wei.com>
To: <arnd@...db.de>, <gregkh@...uxfoundation.org>,
<davem@...emloft.net>, <sgarzare@...hat.com>,
<kstewart@...uxfoundation.org>, <alexios.zavras@...el.com>,
<tglx@...utronix.de>, <maowenan@...wei.com>
CC: <linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>,
"Hulk Robot" <hulkci@...wei.com>
Subject: [PATCH -next] vsock/vmci: make vmci_vsock_cb_host_called static
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")
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Mao Wenan <maowenan@...wei.com>
---
drivers/misc/vmw_vmci/vmci_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/vmw_vmci/vmci_driver.c b/drivers/misc/vmw_vmci/vmci_driver.c
index 95fed46..cbb706d 100644
--- a/drivers/misc/vmw_vmci/vmci_driver.c
+++ b/drivers/misc/vmw_vmci/vmci_driver.c
@@ -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.
--
2.7.4
Powered by blists - more mailing lists