diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-04-29 23:57:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-01 15:31:37 -0700 |
commit | cae9566acb1a4533ca85b63f7ac0cc7ebe4a0c30 (patch) | |
tree | 86f23182d71cc15ae5b39db31bb752c8ea2e856c /drivers/net/ethernet | |
parent | 709e7158f0991ec26b2819ef944c276a19b910db (diff) | |
download | linux-cae9566acb1a4533ca85b63f7ac0cc7ebe4a0c30.tar.gz linux-cae9566acb1a4533ca85b63f7ac0cc7ebe4a0c30.tar.bz2 linux-cae9566acb1a4533ca85b63f7ac0cc7ebe4a0c30.zip |
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/ethernet')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sge.c | 1 |
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; |