qede: Make two functions static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 11 Jun 2019 14:07:09 +0000 (22:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2019 20:59:33 +0000 (13:59 -0700)
Fix sparse warning:

drivers/net/ethernet/qlogic/qede/qede_main.c:963:6:
 warning: symbol 'qede_lock' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qede/qede_main.c:969:6:
 warning: symbol 'qede_unlock' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c

index 741377b7c00d968036816a396cc4a78adfa505b4..d4a29660751dd6109c9b673a15df3e1c3382d5bf 100644 (file)
@@ -960,13 +960,13 @@ void __qede_unlock(struct qede_dev *edev)
 /* This version of the lock should be used when acquiring the RTNL lock is also
  * needed in addition to the internal qede lock.
  */
-void qede_lock(struct qede_dev *edev)
+static void qede_lock(struct qede_dev *edev)
 {
        rtnl_lock();
        __qede_lock(edev);
 }
 
-void qede_unlock(struct qede_dev *edev)
+static void qede_unlock(struct qede_dev *edev)
 {
        __qede_unlock(edev);
        rtnl_unlock();