Re: [PATCH v8 2/4] irqchip/qeic: merge qeic init code from platforms to a common function

From: kbuild test robot
Date: Wed Mar 15 2017 - 07:58:07 EST


Hi Zhao,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.11-rc2 next-20170310]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Zhao-Qiang/this-patchset-is-to-remove-PPCisms-for-QEIC/20170315-154031
config: powerpc-mpc836x_rdk_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc

Note: the linux-review/Zhao-Qiang/this-patchset-is-to-remove-PPCisms-for-QEIC/20170315-154031 HEAD 576eb2bf9c05c50a86011019043ed5510c15e4cd builds fine.
It only hurts bisectibility.

All errors (new ones prefixed by >>):

drivers/irqchip/irq-qeic.c: In function 'qeic_of_init':
drivers/irqchip/irq-qeic.c:605:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
return;
^~~~~~
drivers/irqchip/irq-qeic.c:601:19: note: declared here
static int __init qeic_of_init(struct device_node *node,
^~~~~~~~~~~~
drivers/irqchip/irq-qeic.c: At top level:
>> drivers/irqchip/irq-qeic.c:611:23: error: expected ')' before string constant
IRQCHIP_DECLARE(qeic, "fsl,qe-ic", qeic_of_init);
^~~~~~~~~~~
drivers/irqchip/irq-qeic.c:601:19: warning: 'qeic_of_init' defined but not used [-Wunused-function]
static int __init qeic_of_init(struct device_node *node,
^~~~~~~~~~~~

vim +611 drivers/irqchip/irq-qeic.c

599 }
600
601 static int __init qeic_of_init(struct device_node *node,
602 struct device_node *parent)
603 {
604 if (!node)
> 605 return;
606 qe_ic_init(node, 0, qe_ic_cascade_low_mpic,
607 qe_ic_cascade_high_mpic);
608 of_node_put(node);
609 }
610
> 611 IRQCHIP_DECLARE(qeic, "fsl,qe-ic", qeic_of_init);
612 subsys_initcall(init_qe_ic_sysfs);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip