[avpatel:riscv_sbi_dbcn_v1 15/42] drivers/irqchip/irq-riscv-intc.c:90:10: error: 'const struct irq_domain_ops' has no member named 'alloc'

From: kernel test robot
Date: Tue Aug 30 2022 - 10:42:27 EST


tree: https://github.com/avpatel/linux.git riscv_sbi_dbcn_v1
head: 74814d446b33fc095867181d8953a92ede0b042c
commit: 17f1dcd006f4ae2d52bb463151339b6af6ff7d08 [15/42] RISC-V: Treat IPIs as normal Linux IRQs
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20220830/202208302216.JZekZCma-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 12.1.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://github.com/avpatel/linux/commit/17f1dcd006f4ae2d52bb463151339b6af6ff7d08
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_sbi_dbcn_v1
git checkout 17f1dcd006f4ae2d52bb463151339b6af6ff7d08
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/irqchip/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/irqchip/irq-riscv-intc.c:90:10: error: 'const struct irq_domain_ops' has no member named 'alloc'
90 | .alloc = riscv_intc_domain_alloc
| ^~~~~
drivers/irqchip/irq-riscv-intc.c:90:19: warning: excess elements in struct initializer
90 | .alloc = riscv_intc_domain_alloc
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-riscv-intc.c:90:19: note: (near initialization for 'riscv_intc_domain_ops')


vim +90 drivers/irqchip/irq-riscv-intc.c

86
87 static const struct irq_domain_ops riscv_intc_domain_ops = {
88 .map = riscv_intc_domain_map,
89 .xlate = irq_domain_xlate_onecell,
> 90 .alloc = riscv_intc_domain_alloc
91 };
92

--
0-DAY CI Kernel Test Service
https://01.org/lkp