tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d31958b30ea3b7b6e522d6bf449427748ad45822
commit: e860785d5730665e04e0ac301aa14ed3779c4d92 [4813/7247] drm/meson: overlay: setup
overlay for Amlogic FBC
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-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 e860785d5730665e04e0ac301aa14ed3779c4d92
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD d31958b30ea3b7b6e522d6bf449427748ad45822 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/gpu/drm/meson/meson_overlay.c:8:
drivers/gpu/drm/meson/meson_overlay.c: In function
'meson_overlay_setup_scaler_params':
> include/linux/compiler.h:392:38: error: call to
'__compiletime_assert_334' declared with attribute error: FIELD_PREP: value too
large for the field
392 | _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:373:4: note: in definition of macro
'__compiletime_assert'
373 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro
'_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:147:37: note: in expansion of macro
'FIELD_PREP'
147 | #define AFBC_DEC_PIXEL_BGN_H(value) FIELD_PREP(GENMASK(28, 16), value)
| ^~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:413:4: note: in expansion of macro
'AFBC_DEC_PIXEL_BGN_H'
413 | AFBC_DEC_PIXEL_BGN_H(hd_start_lines - afbc_left) |
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:392:38: error: call to '__compiletime_assert_394'
declared with attribute error: FIELD_PREP: value too large for the field
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:373:4: note: in definition of macro
'__compiletime_assert'
373 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro
'_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:61:28: note: in expansion of macro
'FIELD_PREP'
61 | #define VD_H_START(value) FIELD_PREP(GENMASK(27, 16), value)
| ^~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:434:40: note: in expansion of macro
'VD_H_START'
434 | priv->viu.vpp_blend_vd2_h_start_end = VD_H_START(hd_start_lines) |
| ^~~~~~~~~~
vim +/__compiletime_assert_334 +392 include/linux/compiler.h
9a8ab1c39970a49 Daniel Santos 2013-02-21 378
9a8ab1c39970a49 Daniel Santos 2013-02-21 379 #define _compiletime_assert(condition, msg,
prefix, suffix) \
9a8ab1c39970a49 Daniel Santos 2013-02-21 380 __compiletime_assert(condition, msg,
prefix, suffix)
9a8ab1c39970a49 Daniel Santos 2013-02-21 381
9a8ab1c39970a49 Daniel Santos 2013-02-21 382 /**
9a8ab1c39970a49 Daniel Santos 2013-02-21 383 * compiletime_assert - break build and
emit msg if condition is false
9a8ab1c39970a49 Daniel Santos 2013-02-21 384 * @condition: a compile-time constant
condition to check
9a8ab1c39970a49 Daniel Santos 2013-02-21 385 * @msg: a message to emit if
condition is false
9a8ab1c39970a49 Daniel Santos 2013-02-21 386 *
9a8ab1c39970a49 Daniel Santos 2013-02-21 387 * In tradition of POSIX assert, this macro
will break the build if the
9a8ab1c39970a49 Daniel Santos 2013-02-21 388 * supplied condition is *false*, emitting
the supplied error message if the
9a8ab1c39970a49 Daniel Santos 2013-02-21 389 * compiler has support to do so.
9a8ab1c39970a49 Daniel Santos 2013-02-21 390 */
9a8ab1c39970a49 Daniel Santos 2013-02-21 391 #define compiletime_assert(condition, msg)
\
af9c5d2e3b35585 Vegard Nossum 2020-04-06 @392 _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
9a8ab1c39970a49 Daniel Santos 2013-02-21 393
:::::: The code at line 392 was first introduced by commit
:::::: af9c5d2e3b355854ff0e4acfbfbfadcd5198a349 compiler.h: fix error in BUILD_BUG_ON()
reporting
:::::: TO: Vegard Nossum <vegard.nossum(a)oracle.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org