From: Sucheta Chakraborty Date: Tue, 3 Sep 2013 09:07:37 +0000 (-0400) Subject: qlcnic: Fix sparse warning. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0996b7dfc3858a497f2de24c233a560e30fe4a14;p=linux-beck.git qlcnic: Fix sparse warning. This patch fixes warning "warning: symbol 'qlcnic_set_dcb_ops' was not declared. Should it be static?" Signed-off-by: Sucheta Chakraborty Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c index 2e10e7922cfe..d62d5ce432ec 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c @@ -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;