liquidio: enlarge the interrupt name buffer
Subsystems (3)
PATCH 1/1 liquidio: enlarge the interrupt name buffer
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.
--- drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cavium/liquidio/liquidio_common.h +1 -1
@@ -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)
Signature · 1 line
2.43.0
This patch was applied to netdev/net-next.git (main) by Dave Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Dave Miller <[email protected]>:
Quoted 8 lines · On Fri, 6 Nov 2026 17:51:14 +0800 you wrote:
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=][...]
Here is the summary with links:
- [net-next] liquidio: enlarge the interrupt name buffer
https://git.kernel.org/netdev/net-next/c/1be1e065008d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html