Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5948d117 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1dbb9869
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();