[v3,2/2] crypto/caam_jr: fix the functions to use the correct type
Checks
Commit Message
From: Yunjian Wang <wangyunjian@huawei.com>
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 <wangyunjian@huawei.com>
---
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(-)
@@ -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
@@ -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;