qede: Make two functions static
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>
This commit is contained in:
committed by
David S. Miller
parent
1dbb98699c
commit
5948d11766
@@ -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
|
/* This version of the lock should be used when acquiring the RTNL lock is also
|
||||||
* needed in addition to the internal qede lock.
|
* 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();
|
rtnl_lock();
|
||||||
__qede_lock(edev);
|
__qede_lock(edev);
|
||||||
}
|
}
|
||||||
|
|
||||||
void qede_unlock(struct qede_dev *edev)
|
static void qede_unlock(struct qede_dev *edev)
|
||||||
{
|
{
|
||||||
__qede_unlock(edev);
|
__qede_unlock(edev);
|
||||||
rtnl_unlock();
|
rtnl_unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user