Re: [PATCH 3/3] irqchip: xilinx: Add support to remove the Xilinx INTC driver module.

From: kernel test robot
Date: Tue Apr 27 2021 - 12:27:56 EST


Hi Anirudha,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/irq/core]
[also build test ERROR on robh/for-next linus/master v5.12 next-20210427]
[cannot apply to xlnx/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Anirudha-Sarangi/Updates-in-irqchip-framework-to-remove-irqchip/20210427-193255
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 765822e1569a37aab5e69736c52d4ad4a289eba6
config: microblaze-randconfig-s031-20210426 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/5ca8cc6e787f51feed9a979547906dded222b51b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anirudha-Sarangi/Updates-in-irqchip-framework-to-remove-irqchip/20210427-193255
git checkout 5ca8cc6e787f51feed9a979547906dded222b51b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=microblaze

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

All errors (new ones prefixed by >>):

drivers/irqchip/irq-xilinx-intc.c: In function 'xilinx_intc_of_remove':
>> drivers/irqchip/irq-xilinx-intc.c:275:10: error: 'struct xintc_irq_chip' has no member named 'domain'
275 | if (irqc->domain) {
| ^~
drivers/irqchip/irq-xilinx-intc.c:277:25: error: 'struct xintc_irq_chip' has no member named 'domain'
277 | irq_domain_remove(irqc->domain);
| ^~


vim +275 drivers/irqchip/irq-xilinx-intc.c

262
263 static int xilinx_intc_of_remove(struct device_node *intc,
264 struct device_node *parent)
265 {
266 int irq;
267 struct xintc_irq_chip *irqc;
268
269 if (!parent)
270 return 0;
271
272 irqc = intc->data;
273 irq = irqc->irq;
274 irq_set_chained_handler_and_data(irq, NULL, NULL);
> 275 if (irqc->domain) {
276 irq_dispose_mapping(irq);
277 irq_domain_remove(irqc->domain);
278 }
279 /*
280 * Disable all external interrupts until they are
281 * explicity requested.
282 */
283 xintc_write(irqc, IER, 0);
284 /* Acknowledge any pending interrupts just in case. */
285 xintc_write(irqc, IAR, 0xffffffff);
286 /* Turn off the Master Enable. */
287 xintc_write(irqc, MER, 0x0);
288
289 iounmap(irqc->base);
290 kfree(irqc);
291
292 return 0;
293 }
294

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip