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 <wangyunjian@huawei.com>
Acked-by: Gagandeep Singh <g.singh@nxp.com>
This commit is contained in:
Yunjian Wang 2020-05-14 19:00:07 +08:00 committed by Akhil Goyal
parent 61552661e2
commit c40b4fcd98
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;