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>
* @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
* @retval -1 value for error
*
*/
-uint32_t caam_jr_disable_irqs(int uio_fd);
+int caam_jr_disable_irqs(int uio_fd);
#endif
* @retval 0 for success
* @retval -1 value for error
*/
-uint32_t
+int
caam_jr_enable_irqs(int uio_fd)
{
int ret;
* @retval -1 value for error
*
*/
-uint32_t
+int
caam_jr_disable_irqs(int uio_fd)
{
int ret;