[PATCH rdma-rc 3/3] RDMA/hns: Fix the warnings from fortify

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

 



This patch fixed the warnings reported by fortify.

Signed-off-by: Yixian Liu <liuyixian@xxxxxxxxxx>
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index d02fe04..e465556 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -4549,7 +4549,7 @@ static irqreturn_t hns_roce_v2_msix_interrupt_eq(int irq, void *eq_ptr)
 		/* Asychronous event interrupt */
 		int_work = hns_roce_v2_aeq_int(hr_dev, eq);
 
-	return IRQ_RETVAL(int_work);
+	return (unsigned int)IRQ_RETVAL(int_work);
 }
 
 static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id)
@@ -4608,7 +4608,7 @@ static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id)
 	} else
 		dev_err(dev, "There is no abnormal irq found!\n");
 
-	return IRQ_RETVAL(int_work);
+	return (unsigned int)IRQ_RETVAL(int_work);
 }
 
 static void hns_roce_v2_int_mask_enable(struct hns_roce_dev *hr_dev,
-- 
2.7.4




[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