From c40b4fcd98933749a41f7b8e9b66368f920038f6 Mon Sep 17 00:00:00 2001 From: Yunjian Wang Date: Thu, 14 May 2020 19:00:07 +0800 Subject: [PATCH] crypto/caam_jr: fix IRQ functions return type The caam_jr_enable_irqs() and caam_jr_disable_irqs() methods maybe return a negative error. So use int instead of uint32_t int the functions. Fixes: e7a45f3cc245 ("crypto/caam_jr: add UIO specific operations") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang Acked-by: Gagandeep Singh --- drivers/crypto/caam_jr/caam_jr_pvt.h | 4 ++-- drivers/crypto/caam_jr/caam_jr_uio.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/caam_jr/caam_jr_pvt.h b/drivers/crypto/caam_jr/caam_jr_pvt.h index d6b3dafaa6..552d6b9b1b 100644 --- a/drivers/crypto/caam_jr/caam_jr_pvt.h +++ b/drivers/crypto/caam_jr/caam_jr_pvt.h @@ -280,7 +280,7 @@ static inline rte_iova_t caam_jr_dma_vtop(void *ptr) * @retval 0 for success * @retval -1 value for error */ -uint32_t caam_jr_enable_irqs(int uio_fd); +int caam_jr_enable_irqs(int uio_fd); /** @brief Request to SEC kernel driver to disable interrupts for descriptor * finished processing @@ -293,6 +293,6 @@ uint32_t caam_jr_enable_irqs(int uio_fd); * @retval -1 value for error * */ -uint32_t caam_jr_disable_irqs(int uio_fd); +int caam_jr_disable_irqs(int uio_fd); #endif diff --git a/drivers/crypto/caam_jr/caam_jr_uio.c b/drivers/crypto/caam_jr/caam_jr_uio.c index 30837c1164..e4ee102344 100644 --- a/drivers/crypto/caam_jr/caam_jr_uio.c +++ b/drivers/crypto/caam_jr/caam_jr_uio.c @@ -201,7 +201,7 @@ sec_uio_send_command(int uio_fd, int32_t uio_command) * @retval 0 for success * @retval -1 value for error */ -uint32_t +int caam_jr_enable_irqs(int uio_fd) { int ret; @@ -232,7 +232,7 @@ caam_jr_enable_irqs(int uio_fd) * @retval -1 value for error * */ -uint32_t +int caam_jr_disable_irqs(int uio_fd) { int ret; -- 2.20.1