From: kernel test robot <lkp@intel.com>
To: Marc Zyngier <maz@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org
Subject: [arm-platforms:hack/ppi 8/13] include/linux/irqdomain.h:765:12: warning: 'irq_populate_fwspec_info' defined but not used
Date: Mon, 7 Apr 2025 00:27:58 +0800 [thread overview]
Message-ID: <202504070043.zBFNF505-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/ppi
head: 2eb268faef9c9204898770ee24a676c213566794
commit: 069b6b94df996439ad61f8ad9f15617097a09fa9 [8/13] fixup! new affinity retrieval API
config: powerpc64-randconfig-002-20250406 (https://download.01.org/0day-ci/archive/20250407/202504070043.zBFNF505-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250407/202504070043.zBFNF505-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/202504070043.zBFNF505-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/of_irq.h:8:0,
from drivers/crypto/inside-secure/safexcel.c:16:
>> include/linux/irqdomain.h:765:12: warning: 'irq_populate_fwspec_info' defined but not used [-Wunused-function]
static int irq_populate_fwspec_info(struct irq_fwspec_info *info)
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/crypto/inside-secure/safexcel.c: In function 'safexcel_probe_generic.constprop':
drivers/crypto/inside-secure/safexcel.c:1162:30: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=]
snprintf(irq_name, 6, "ring%d", irqid);
^~
drivers/crypto/inside-secure/safexcel.c:1162:25: note: directive argument in the range [0, 2147483647]
snprintf(irq_name, 6, "ring%d", irqid);
^~~~~~~~
drivers/crypto/inside-secure/safexcel.c:1162:3: note: 'snprintf' output between 6 and 15 bytes into a destination of size 6
snprintf(irq_name, 6, "ring%d", irqid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/crypto/inside-secure/safexcel.c:1667:32: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=]
snprintf(wq_name, 9, "wq_ring%d", i);
^~
drivers/crypto/inside-secure/safexcel.c:1667:24: note: directive argument in the range [0, 2147483647]
snprintf(wq_name, 9, "wq_ring%d", i);
^~~~~~~~~~~
drivers/crypto/inside-secure/safexcel.c:1667:3: note: 'snprintf' output between 9 and 18 bytes into a destination of size 9
snprintf(wq_name, 9, "wq_ring%d", i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/of_irq.h:8:0,
from safexcel.c:16:
>> include/linux/irqdomain.h:765:12: warning: 'irq_populate_fwspec_info' defined but not used [-Wunused-function]
static int irq_populate_fwspec_info(struct irq_fwspec_info *info)
^~~~~~~~~~~~~~~~~~~~~~~~
safexcel.c: In function 'safexcel_probe_generic.constprop':
safexcel.c:1162:30: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=]
snprintf(irq_name, 6, "ring%d", irqid);
^~
safexcel.c:1162:25: note: directive argument in the range [0, 2147483647]
snprintf(irq_name, 6, "ring%d", irqid);
^~~~~~~~
safexcel.c:1162:3: note: 'snprintf' output between 6 and 15 bytes into a destination of size 6
snprintf(irq_name, 6, "ring%d", irqid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
safexcel.c:1667:32: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=]
snprintf(wq_name, 9, "wq_ring%d", i);
^~
safexcel.c:1667:24: note: directive argument in the range [0, 2147483647]
snprintf(wq_name, 9, "wq_ring%d", i);
^~~~~~~~~~~
safexcel.c:1667:3: note: 'snprintf' output between 9 and 18 bytes into a destination of size 9
snprintf(wq_name, 9, "wq_ring%d", i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/irq_populate_fwspec_info +765 include/linux/irqdomain.h
764
> 765 static int irq_populate_fwspec_info(struct irq_fwspec_info *info)
766 {
767 return -EINVAL;
768 }
769 #endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */
770
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-04-06 16:30 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=202504070043.zBFNF505-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@kernel.org \
--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.