From: kernel test robot <lkp@intel.com>
To: Eliza Balas <eliza.balas@analog.com>
Cc: oe-kbuild-all@lists.linux.dev, Nuno Sa <noname.nuno@gmail.com>
Subject: [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
Date: Sat, 13 Jun 2026 02:17:20 +0800 [thread overview]
Message-ID: <202606130205.hDCA5lSW-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-12 18:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606130205.hDCA5lSW-lkp@intel.com \
--to=lkp@intel.com \
--cc=eliza.balas@analog.com \
--cc=noname.nuno@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.