提交 e6053dd5 编写于 作者: W Wei Yongjun 提交者: David S. Miller

be2net: fix non static symbol warnings

Fixes the following sparse warnings:

drivers/net/ethernet/emulex/benet/be_main.c:47:25: warning:
 symbol 'be_err_recovery_workq' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_main.c:63:25: warning:
 symbol 'be_wq' was not declared. Should it be static?
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 876a55b8
...@@ -44,7 +44,7 @@ MODULE_PARM_DESC(rx_frag_size, "Size of a fragment that holds rcvd data."); ...@@ -44,7 +44,7 @@ MODULE_PARM_DESC(rx_frag_size, "Size of a fragment that holds rcvd data.");
/* Per-module error detection/recovery workq shared across all functions. /* Per-module error detection/recovery workq shared across all functions.
* Each function schedules its own work request on this shared workq. * Each function schedules its own work request on this shared workq.
*/ */
struct workqueue_struct *be_err_recovery_workq; static struct workqueue_struct *be_err_recovery_workq;
static const struct pci_device_id be_dev_ids[] = { static const struct pci_device_id be_dev_ids[] = {
{ PCI_DEVICE(BE_VENDOR_ID, BE_DEVICE_ID1) }, { PCI_DEVICE(BE_VENDOR_ID, BE_DEVICE_ID1) },
...@@ -60,7 +60,7 @@ static const struct pci_device_id be_dev_ids[] = { ...@@ -60,7 +60,7 @@ static const struct pci_device_id be_dev_ids[] = {
MODULE_DEVICE_TABLE(pci, be_dev_ids); MODULE_DEVICE_TABLE(pci, be_dev_ids);
/* Workqueue used by all functions for defering cmd calls to the adapter */ /* Workqueue used by all functions for defering cmd calls to the adapter */
struct workqueue_struct *be_wq; static struct workqueue_struct *be_wq;
/* UE Status Low CSR */ /* UE Status Low CSR */
static const char * const ue_status_low_desc[] = { static const char * const ue_status_low_desc[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册