* [PATCH net-next] liquidio: enlarge the interrupt name buffer
@ 2026-11-06 9:51 xujiahao
2026-11-11 8:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: xujiahao @ 2026-11-06 9:51 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: Andrew Lunn, netdev, linux-kernel, xujiahao
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@cmss.chinamobile.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] liquidio: enlarge the interrupt name buffer
2026-11-06 9:51 [PATCH net-next] liquidio: enlarge the interrupt name buffer xujiahao
@ 2026-11-11 8:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-11-11 8:40 UTC (permalink / raw)
To: Jiahao Xu
Cc: davem, edumazet, kuba, pabeni, andrew+netdev, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-11 8:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 9:51 [PATCH net-next] liquidio: enlarge the interrupt name buffer xujiahao
2026-11-11 8:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®