diff --git a/drivers/common/cnxk/roc_irq.c b/drivers/common/cnxk/roc_irq.c index a709c4047d..0b21b9e2d9 100644 --- a/drivers/common/cnxk/roc_irq.c +++ b/drivers/common/cnxk/roc_irq.c @@ -15,7 +15,7 @@ #define MSIX_IRQ_SET_BUF_LEN \ (sizeof(struct vfio_irq_set) + sizeof(int) * \ - (plt_intr_max_intr_get(intr_handle))) + ((uint32_t)plt_intr_max_intr_get(intr_handle))) static int irq_get_info(struct plt_intr_handle *intr_handle)