tree:
https://git.linaro.org/people/lee.jones/linux.git tb-fix-w1-warnings
head: 4100a70a722e6bd00b7f9d8b84e52c86060952ca
commit: faaaa667897d3e3a323ab678b8e88e1d8343bff2 [100/200] staging: rtw_ioctl_set: Move
'channel_table' to the only place it's used
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.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
git remote add lee-linaro
https://git.linaro.org/people/lee.jones/linux.git
git fetch --no-tags lee-linaro tb-fix-w1-warnings
git checkout faaaa667897d3e3a323ab678b8e88e1d8343bff2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:27:3: error:
conflicting types for 'channel_table'
27 | } channel_table[] = { {
RT_CHANNEL_DOMAIN_FCC, "US" },
| ^~~~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:17:3: note: previous definition of
'channel_table' was here
17 | } channel_table[] = { { RT_CHANNEL_DOMAIN_FCC, "US" },
| ^~~~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:17:3: warning: 'channel_table'
defined but not used [-Wunused-const-variable=]
vim +/channel_table +27 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
23
24 static const struct {
25 int channel_plan;
26 char *name;
27 } channel_table[] = { { RT_CHANNEL_DOMAIN_FCC, "US" },
28 { RT_CHANNEL_DOMAIN_ETSI, "EU" },
29 { RT_CHANNEL_DOMAIN_MKK, "JP" },
30 { RT_CHANNEL_DOMAIN_CHINA, "CN"} };
31
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org