🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
2 messages
2 total messages Started by xujiahao Fri, 06 Nov 2026 09:51
[PATCH net-next] liquidio: enlarge the interrupt name buffer
#12134
Author: xujiahao
Date: Fri, 06 Nov 2026 09:51
32 lines
9955 bytes
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
Re: [PATCH net-next] liquidio: enlarge the interrupt name buffer
#14438
Author: patchwork-bot+netdevbpf
Date: Wed, 11 Nov 2026 08:40
24 lines
8920 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads