[openrisc:for-next 3/3] arch/openrisc/include/asm/setup.h:11:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'or1k_early_setup'

From: kernel test robot
Date: Thu Aug 05 2021 - 08:05:10 EST


tree: https://github.com/openrisc/linux.git for-next
head: 19e14f3a81d227f1c8b8d5371de28b3ab3deb556
commit: 19e14f3a81d227f1c8b8d5371de28b3ab3deb556 [3/3] openrisc: Fix compiler warnings in setup
config: openrisc-randconfig-r005-20210804 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.3.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://github.com/openrisc/linux/commit/19e14f3a81d227f1c8b8d5371de28b3ab3deb556
git remote add openrisc https://github.com/openrisc/linux.git
git fetch --no-tags openrisc for-next
git checkout 19e14f3a81d227f1c8b8d5371de28b3ab3deb556
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash

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 arch/openrisc/include/asm/page.h:35,
from drivers/usb/atm/speedtch.c:12:
>> arch/openrisc/include/asm/setup.h:11:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'or1k_early_setup'
11 | void __init or1k_early_setup(void *fdt);
| ^~~~~~~~~~~~~~~~


vim +11 arch/openrisc/include/asm/setup.h

9
10 #ifndef __ASSEMBLY__
> 11 void __init or1k_early_setup(void *fdt);
12 #endif
13

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

Attachment: .config.gz
Description: application/gzip