[input:test 2/3] arch/powerpc/platforms/83xx/mpc832x_mds.c:78:3: error: ISO C90 forbids mixed declarations and code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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':
   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")
                                     ^
   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: error: parameter names (without types) in function declaration [-Werror]
       par_io_of_config(np);
       ^~~~~~~~~~~~~~~~
>> arch/powerpc/platforms/83xx/mpc832x_mds.c:78:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
      for_each_node_by_name(np. "ucc")
      ^~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux