[PATCH net-next] liquidio: enlarge the interrupt name buffer

From: xujiahao

Date: Fri Nov 06 2026 - 04:57:33 EST


The PF and VF interrupt names are assembled as "LiquidIO%u-pf%u-rxtx-%u"
and "LiquidIO%u-vf%u-rxtx-%u" into INTRNAMSIZ (32-byte) slots. Three
full-range %u do not fit, which gcc reports in a W=1 build:

drivers/net/ethernet/cavium/liquidio/lio_core.c:1119:76: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 13 [-Wformat-truncation=]
drivers/net/ethernet/cavium/liquidio/lio_core.c:1124:76: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 13 [-Wformat-truncation=]

Enlarge INTRNAMSIZ to 64 bytes. queue_irq_names is allocated with
kcalloc(num_interrupts, INTRNAMSIZ) and the auxiliary name with
kzalloc(INTRNAMSIZ), so both follow the new size.

Signed-off-by: xujiahao <xujiahao@xxxxxxxxxxxxxxxxxxxx>
---
drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h
index 4da90757c..131e39299 100644
--- a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h
+++ b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h
@@ -102,7 +102,7 @@ enum octeon_tag_type {

#define BYTES_PER_DHLEN_UNIT 8
#define MAX_REG_CNT 2000000U
-#define INTRNAMSIZ 32
+#define INTRNAMSIZ 64
#define IRQ_NAME_OFF(i) ((i) * INTRNAMSIZ)
#define MAX_IOQ_INTERRUPTS_PER_PF (64 * 2)
#define MAX_IOQ_INTERRUPTS_PER_VF (8 * 2)
--
2.43.0