From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DD72DA00C5 for ; Thu, 14 May 2020 13:00:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD5521D8E4; Thu, 14 May 2020 13:00:22 +0200 (CEST) Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by dpdk.org (Postfix) with ESMTP id 79EDB1D8CA; Thu, 14 May 2020 13:00:18 +0200 (CEST) Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A806EED7E9B40FDE7FC0; Thu, 14 May 2020 19:00:16 +0800 (CST) Received: from localhost (10.173.251.152) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 14 May 2020 19:00:09 +0800 From: wangyunjian To: CC: , , , , Yunjian Wang , Date: Thu, 14 May 2020 19:00:07 +0800 Message-ID: <1589454007-9572-1-git-send-email-wangyunjian@huawei.com> X-Mailer: git-send-email 1.9.5.msysgit.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.251.152] X-CFilter-Loop: Reflected Subject: [dpdk-stable] [dpdk-dev] [PATCH v3 2/2] crypto/caam_jr: fix the functions to use the correct type X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Yunjian Wang 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 --- 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 d6b3dafaa..552d6b9b1 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 30837c116..e4ee10234 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.19.1