[arm-platforms:irq/print_chip 17/20] drivers/irqchip/irq-versatile-fpga.c:72:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct device_node *'
kernel test robot
lkp at intel.com
Thu Feb 3 06:06:05 PST 2022
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/print_chip
head: 68e1565b9fb90ef4cf08ffdda9186e44177ca3a5
commit: aa26db53e14182d3a9c358af70558c7c7c5c67ce [17/20] irqchip/versatile-fpga: Switch to dynamic chip name output
config: arm-randconfig-m031-20220201 (https://download.01.org/0day-ci/archive/20220203/202202031526.pqJpCDTR-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=aa26db53e14182d3a9c358af70558c7c7c5c67ce
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/print_chip
git checkout aa26db53e14182d3a9c358af70558c7c7c5c67ce
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/irqchip/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/irqchip/irq-versatile-fpga.c: In function 'fpga_irq_print_chip':
>> drivers/irqchip/irq-versatile-fpga.c:72:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct device_node *' [-Wformat=]
72 | seq_printf(p, "%s", irq_domain_get_of_node(f->domain));
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | struct device_node *
| char *
vim +72 drivers/irqchip/irq-versatile-fpga.c
67
68 static void fpga_irq_print_chip(struct irq_data *d, struct seq_file *p)
69 {
70 struct fpga_irq_data *f = irq_data_get_irq_chip_data(d);
71
> 72 seq_printf(p, "%s", irq_domain_get_of_node(f->domain));
73 }
74
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
More information about the linux-arm-kernel
mailing list