RDMA/cxgb4: Make c4iw_poll_cq_one() easier to analyze
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 6 Jul 2018 17:28:27 +0000 (10:28 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 19:07:23 +0000 (13:07 -0600)
commit4ab39e2f98f2f49e97c8dd8e239697bd0bab8103
tree78f381c14b6e2dc491e613a52b0919b9cfa67e40
parentcbd8e988eb94ee54d890c103b4947bf4a8839fae
RDMA/cxgb4: Make c4iw_poll_cq_one() easier to analyze

Introduce the function __c4iw_poll_cq_one() such that c4iw_poll_cq_one()
becomes easier to analyze for static source code analyzers. This patch
avoids that sparse reports the following:

drivers/infiniband/hw/cxgb4/cq.c:401:36: warning: context imbalance in 'c4iw_flush_hw_cq' - unexpected unlock
drivers/infiniband/hw/cxgb4/cq.c:824:9: warning: context imbalance in 'c4iw_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/cxgb4/cq.c