From: Adit Ranadive Date: Tue, 29 Aug 2017 22:51:30 +0000 (-0700) Subject: RDMA/vmw_pvrdma: Fix a signedness X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14d6c3a83fbcd9c3d19e24d8d5820a912f2615c9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git RDMA/vmw_pvrdma: Fix a signedness Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Signed-off-by: Adit Ranadive Reviewed-by: Yuval Shaia Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c index 8a12dc73b68e..3562c0c30492 100644 --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c @@ -299,7 +299,7 @@ static inline struct pvrdma_cqe *get_cqe(struct pvrdma_cq *cq, int i) void _pvrdma_flush_cqe(struct pvrdma_qp *qp, struct pvrdma_cq *cq) { - int head; + unsigned int head; int has_data; if (!cq->is_kernel)