* [arm-platforms:hack/ppi 8/13] include/linux/irqdomain.h:765:12: warning: 'irq_populate_fwspec_info' defined but not used
@ 2025-04-06 16:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-06 16:27 UTC (permalink / raw)
To: Marc Zyngier; +Cc: oe-kbuild-all, linux-arm-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-06 16:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-06 16:27 [arm-platforms:hack/ppi 8/13] include/linux/irqdomain.h:765:12: warning: 'irq_populate_fwspec_info' defined but not used 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.