qlcnic: Fix sparse warning.
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Tue, 3 Sep 2013 09:07:37 +0000 (05:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 04:27:27 +0000 (00:27 -0400)
This patch fixes warning "warning: symbol 'qlcnic_set_dcb_ops' was
not declared. Should it be static?"

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c

index 2e10e7922cfe1b9444dde05c5ae6a6e0fa2e0af9..d62d5ce432ec7525ca3f504b790d050797f343d2 100644 (file)
@@ -248,7 +248,7 @@ static inline void __qlcnic_init_dcbnl_ops(struct qlcnic_adapter *adapter)
                adapter->netdev->dcbnl_ops = &qlcnic_dcbnl_ops;
 }
 
-void qlcnic_set_dcb_ops(struct qlcnic_adapter *adapter)
+static void qlcnic_set_dcb_ops(struct qlcnic_adapter *adapter)
 {
        if (qlcnic_82xx_check(adapter))
                adapter->dcb->ops = &qlcnic_82xx_dcb_ops;