Re: [PATCH] RDMA/cxgb4: Make c4iw_poll_cq_one() easier to analyze

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 7/6/2018 12:28 PM, Bart Van Assche wrote:
> 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@xxxxxxx>
> Cc: Steve Wise <swise@xxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/cxgb4/cq.c | 62 ++++++++++++++++++--------------
>  1 file changed, 35 insertions(+), 27 deletions(-)

Acked-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux