[input:test 2/3] arch/powerpc/platforms/83xx/mpc832x_mds.c:78:34: error: macro "for_each_node_by_name" requires 2 arguments, but only 1 given
From: kbuild test robot <hidden>
Date: 2017-02-01 02:04:40
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git test head: 49b0a9d98b0a68f1dcc1bab017d1bfd473234dd1 commit: 9d770a8d5422fe3ce66a29f140db7742c5d12843 [2/3] powerpc: make use of for_each_node_by_name() instead of open-coding it config: powerpc-mpc832x_mds_defconfig (attached as .config) compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 9d770a8d5422fe3ce66a29f140db7742c5d12843 # save the attached .config to linux build tree make.cross ARCH=powerpc All errors (new ones prefixed by >>): arch/powerpc/platforms/83xx/mpc832x_mds.c: In function 'mpc832x_sys_setup_arch':
quoted
arch/powerpc/platforms/83xx/mpc832x_mds.c:78:34: error: macro "for_each_node_by_name" requires 2 arguments, but only 1 given
for_each_node_by_name(np. "ucc")
^quoted
arch/powerpc/platforms/83xx/mpc832x_mds.c:78:3: error: unknown type name 'for_each_node_by_name'
for_each_node_by_name(np. "ucc")
^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/83xx/mpc832x_mds.c:79:4: warning: parameter names (without types) in function declaration
par_io_of_config(np);
^~~~~~~~~~~~~~~~
arch/powerpc/platforms/83xx/mpc832x_mds.c:78:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
for_each_node_by_name(np. "ucc")
^~~~~~~~~~~~~~~~~~~~~
vim +/for_each_node_by_name +78 arch/powerpc/platforms/83xx/mpc832x_mds.c
72
73 #ifdef CONFIG_QUICC_ENGINE
74 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) {
75 par_io_init(np);
76 of_node_put(np);
77
> 78 for_each_node_by_name(np. "ucc")
79 par_io_of_config(np);
80 }
81
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation Attachments
- .config.gz [application/gzip] 14344 bytes