* [nsa:xlnx/fix/buf-mmap-multibuffer 26771/27391] drivers/net/mqnic/mqnic_irq.c:108:62: warning: 'snprintf' output may be truncated before the last format character
@ 2026-06-12 18:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-12 18:17 UTC (permalink / raw)
To: Eliza Balas; +Cc: oe-kbuild-all, Nuno Sa
tree: https://github.com/nunojsa/linux xlnx/fix/buf-mmap-multibuffer
head: a26a8baba71e866951f6abf4fc6c0504770c272e
commit: 5df21ca246e1457998e7b8460a088a74f6157c98 [26771/27391] drivers: net: Add Corundum MQNIC driver
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260613/202606130205.hDCA5lSW-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260613/202606130205.hDCA5lSW-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606130205.hDCA5lSW-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/mqnic/mqnic_irq.c: In function 'mqnic_irq_init_platform':
>> drivers/net/mqnic/mqnic_irq.c:108:62: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
108 | snprintf(irq->name, sizeof(irq->name), "%s-%u", mdev->name, k);
| ^
drivers/net/mqnic/mqnic_irq.c:108:17: note: 'snprintf' output between 3 and 20 bytes into a destination of size 19
108 | snprintf(irq->name, sizeof(irq->name), "%s-%u", mdev->name, k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/snprintf +108 drivers/net/mqnic/mqnic_irq.c
82
83 int mqnic_irq_init_platform(struct mqnic_dev *mdev)
84 {
85 struct platform_device *pdev = mdev->pfdev;
86 struct device *dev = mdev->dev;
87 int k;
88
89 // Allocate IRQs
90 mdev->irq_count = platform_irq_count(pdev);
91
92 // Set up interrupts
93 for (k = 0; k < mdev->irq_count; k++) {
94 int irqn;
95 struct mqnic_irq *irq;
96 int ret;
97
98 irqn = platform_get_irq(pdev, k);
99 if (irqn < 0)
100 return irqn;
101
102 irq = devm_kzalloc(dev, sizeof(*irq), GFP_KERNEL);
103 if (!irq)
104 return -ENOMEM;
105
106 ATOMIC_INIT_NOTIFIER_HEAD(&irq->nh);
107
> 108 snprintf(irq->name, sizeof(irq->name), "%s-%u", mdev->name, k);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-12 18:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12 18:17 [nsa:xlnx/fix/buf-mmap-multibuffer 26771/27391] drivers/net/mqnic/mqnic_irq.c:108:62: warning: 'snprintf' output may be truncated before the last format character kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.