tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 8fc787b62d0c673cca994da068df84905ddea333
commit: b92fbb5378148d812c8b1c3025a909b72acbe8c3 [76/106] clk: sunxi-ng: sun8i-de2: Add
R40 specific quirks
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-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 checkout b92fbb5378148d812c8b1c3025a909b72acbe8c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/clk/sunxi-ng/ccu-sun8i-de2.c:223:14: error:
'sun50i_a64_de2_clks' undeclared here (not in a function); did you mean
'sun50i_h6_de3_clks'?
223 | .ccu_clks = sun50i_a64_de2_clks,
| ^~~~~~~~~~~~~~~~~~~
| sun50i_h6_de3_clks
In file included from include/linux/kernel.h:16,
from include/linux/clk.h:13,
from drivers/clk/sunxi-ng/ccu-sun8i-de2.c:6:
> include/linux/build_bug.h:16:45: error: bit-field
'<anonymous>' width not an integer constant
16 | #define
BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
| ^
include/linux/compiler.h:357:28: note: in expansion of macro
'BUILD_BUG_ON_ZERO'
357 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/clk/sunxi-ng/ccu-sun8i-de2.c:224:18: note: in expansion of macro
'ARRAY_SIZE'
224 | .num_ccu_clks = ARRAY_SIZE(sun50i_a64_de2_clks),
| ^~~~~~~~~~
> drivers/clk/sunxi-ng/ccu-sun8i-de2.c:226:14: error:
'sun50i_a64_de2_hw_clks' undeclared here (not in a function); did you mean
'sun50i_h6_de3_hw_clks'?
226 | .hw_clks =
&sun50i_a64_de2_hw_clks,
| ^~~~~~~~~~~~~~~~~~~~~~
| sun50i_h6_de3_hw_clks
vim +223 drivers/clk/sunxi-ng/ccu-sun8i-de2.c
221
222 static const struct sunxi_ccu_desc sun8i_r40_de2_clk_desc = {
223 .ccu_clks = sun50i_a64_de2_clks,
224 .num_ccu_clks =
ARRAY_SIZE(sun50i_a64_de2_clks),
225
226 .hw_clks = &sun50i_a64_de2_hw_clks,
227
228 .resets = sun8i_a83t_de2_resets,
229 .num_resets = ARRAY_SIZE(sun8i_a83t_de2_resets),
230 };
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org