Skip to content

Commit

Permalink
common/cnxk: fix build on Ubuntu 24.04
Browse files Browse the repository at this point in the history
Due to different datatypes, warnings are thrown for writing
on space more than its size.

Bugzilla ID: 1513
Fixes: 39ac394 ("common/cnxk: fix device MSI-X greater than default value")
Cc: [email protected]

Signed-off-by: Sunil Kumar Kori <[email protected]>
  • Loading branch information
SunilKumarKori authored and jerinjacobk committed Nov 18, 2024
1 parent 87e210e commit 20c29a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/common/cnxk/roc_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20c29a0

Please sign in to comment.