[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1609310480-80777-1-git-send-email-abaci-bugfix@linux.alibaba.com>
Date: Wed, 30 Dec 2020 14:41:20 +0800
From: YANG LI <abaci-bugfix@...ux.alibaba.com>
To: davem@...emloft.net
Cc: kuba@...nel.org, dchickles@...vell.com, sburla@...vell.com,
fmanlunas@...vell.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
YANG LI <abaci-bugfix@...ux.alibaba.com>
Subject: [PATCH] liquidio: fix: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'.
For safety, modify '%u' to '%d' to keep the type consistent.
Signed-off-by: YANG LI <abaci-bugfix@...ux.alibaba.com>
Reported-by: Abaci <abaci@...ux.alibaba.com>
---
drivers/net/ethernet/cavium/liquidio/lio_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c
index 37d0641..07846f9 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_core.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c
@@ -1109,12 +1109,12 @@ int octeon_setup_interrupt(struct octeon_device *oct, u32 num_ioqs)
for (i = 0 ; i < num_ioq_vectors ; i++) {
if (OCTEON_CN23XX_PF(oct))
snprintf(&queue_irq_names[IRQ_NAME_OFF(i)],
- INTRNAMSIZ, "LiquidIO%u-pf%u-rxtx-%u",
+ INTRNAMSIZ, "LiquidIO%u-pf%u-rxtx-%d",
oct->octeon_id, oct->pf_num, i);
if (OCTEON_CN23XX_VF(oct))
snprintf(&queue_irq_names[IRQ_NAME_OFF(i)],
- INTRNAMSIZ, "LiquidIO%u-vf%u-rxtx-%u",
+ INTRNAMSIZ, "LiquidIO%u-vf%u-rxtx-%d",
oct->octeon_id, oct->vf_num, i);
irqret = request_irq(msix_entries[i].vector,
--
1.8.3.1
Powered by blists - more mailing lists