[mingo-tip:sched/headers 2114/2384] arch/mips/vr41xx/common/irq.c:105:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_init_irq'

From: kernel test robot
Date: Fri Jan 14 2022 - 23:18:46 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290 [2114/2384] headers/deps: irq: Optimize <linux/irq.h> dependencies, remove <linux/slab.h>
config: mips-randconfig-r034-20220113 (https://download.01.org/0day-ci/archive/20220115/202201151230.NFPpJt0T-lkp@xxxxxxxxx/config)
compiler: mipsel-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 9b3c6ae85a5f3f3a0471ed5fba5c33471c2d9290
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/vr41xx/common/

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

All errors (new ones prefixed by >>):

In file included from include/linux/irq.h:19,
from include/linux/irqdesc.h:6,
from arch/mips/vr41xx/common/irq.c:7:
arch/mips/include/asm/irq.h:23:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_IRQ'
23 | extern void __init init_IRQ(void);
| ^~~~~~~~
arch/mips/vr41xx/common/irq.c:22:5: warning: no previous prototype for 'cascade_irq' [-Wmissing-prototypes]
22 | int cascade_irq(unsigned int irq, int (*get_irq)(unsigned int))
| ^~~~~~~~~~~
>> arch/mips/vr41xx/common/irq.c:105:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_init_irq'
105 | void __init arch_init_irq(void)
| ^~~~~~~~~~~~~


vim +105 arch/mips/vr41xx/common/irq.c

979934da9e7a00 Yoichi Yuasa 2005-09-03 104
979934da9e7a00 Yoichi Yuasa 2005-09-03 @105 void __init arch_init_irq(void)

:::::: The code at line 105 was first introduced by commit
:::::: 979934da9e7a0005bd9c8b1d7d00febb59ff67f7 [PATCH] mips: update IRQ handling for vr41xx

:::::: TO: Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxx>

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