summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-04-30 01:57:22 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-02 01:31:37 +0300
commitcae9566acb1a4533ca85b63f7ac0cc7ebe4a0c30 (patch)
tree86f23182d71cc15ae5b39db31bb752c8ea2e856c /drivers/net
parent709e7158f0991ec26b2819ef944c276a19b910db (diff)
downloadlinux-cae9566acb1a4533ca85b63f7ac0cc7ebe4a0c30.tar.xz
cxgb4: Add missing annotation for service_ofldq()
Sparse reports a warning at service_ofldq() warning: context imbalance in service_ofldq() - unexpected unlock The root cause is the missing annotation at service_ofldq() Add the missing __must_hold(&q->sendq.lock) annotation Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/sge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c
index 2cfb1f691bf2..6516c45864b3 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c
@@ -2728,6 +2728,7 @@ static void ofldtxq_stop(struct sge_uld_txq *q, struct fw_wr_hdr *wr)
* is ever running at a time ...
*/
static void service_ofldq(struct sge_uld_txq *q)
+ __must_hold(&q->sendq.lock)
{
u64 *pos, *before, *end;
int credits;