RDMA/cxgb3: Make iwch_poll_cq_one() easier to analyze
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 6 Jul 2018 17:27:06 +0000 (10:27 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 18:55:28 +0000 (12:55 -0600)
commitcbd8e988eb94ee54d890c103b4947bf4a8839fae
treee82702ae15de5a61bb9354bfd44d820876b999c9
parent2f229bcf25ca076e8d8f46b9b3dccad5751040d2
RDMA/cxgb3: Make iwch_poll_cq_one() easier to analyze

Introduce the function __iwch_poll_cq_one() to make iwch_poll_cq_one()
easier to analyze for static source code analyzers. This patch avoids
that sparse reports the following:

drivers/infiniband/hw/cxgb3/iwch_cq.c:187:9: warning: context imbalance in 'iwch_poll_cq_one' - different lock contexts for basic block

Compile-tested only.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Steve Wise <swise@chelsio.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb3/iwch_cq.c