tree:
https://github.com/superna9999/linux amlogic/v5.7/amlogic-fbc
head: fcd5dd60c51e37f87dd2d8c8d587b6cab26cde2f
commit: f4f0ebb685e481bb170dc82f02e3275a33c486ea [3/8] drm/meson: overlay: setup overlay
for Amlogic FBC
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f4f0ebb685e481bb170dc82f02e3275a33c486ea
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (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:9:
drivers/gpu/drm/meson/meson_overlay.c: In function
'meson_overlay_setup_scaler_params':
include/linux/compiler.h:350:38: error: call to '__compiletime_assert_414'
declared with attribute error: BUILD_BUG_ON failed: ((((((~(((0UL)))) - ((((1UL)))
<< (16)) + 1) & (~(((0UL))) >> (32 - 1 - (28))))) + (1ULL <<
(__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (16)) + 1) & (~(((0UL)))
>> (32 - 1 - (28))))) - 1))) & ((((((~(((0UL)))) - ((((1UL))) << (16)) +
1) & (~(((0UL))) >> (32 - 1 - (28))))) + (1ULL <<
(__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (16)) + 1) & (~(((0UL)))
>> (32 - 1 - (28))))) - 1))) - 1)) != 0
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro
'__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro
'_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
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:81:3: note: in expansion of macro '__BF_FIELD_CHECK'
81 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
> drivers/gpu/drm/meson/meson_overlay.c:148:37: note: in expansion
of macro 'FIELD_PREP'
148 | #define AFBC_DEC_PIXEL_BGN_H(value)
FIELD_PREP(GENMASK(28, 16), value)
| ^~~~~~~~~~
> drivers/gpu/drm/meson/meson_overlay.c:414:4: note: in expansion
of macro 'AFBC_DEC_PIXEL_BGN_H'
414 |
AFBC_DEC_PIXEL_BGN_H(hd_start_lines - afbc_left) |
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:350:38: error: call to '__compiletime_assert_435'
declared with attribute error: BUILD_BUG_ON failed: ((((((~(((0UL)))) - ((((1UL)))
<< (16)) + 1) & (~(((0UL))) >> (32 - 1 - (27))))) + (1ULL <<
(__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (16)) + 1) & (~(((0UL)))
>> (32 - 1 - (27))))) - 1))) & ((((((~(((0UL)))) - ((((1UL))) << (16)) +
1) & (~(((0UL))) >> (32 - 1 - (27))))) + (1ULL <<
(__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (16)) + 1) & (~(((0UL)))
>> (32 - 1 - (27))))) - 1))) - 1)) != 0
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro
'__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro
'_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
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:81:3: note: in expansion of macro '__BF_FIELD_CHECK'
81 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:62:28: note: in expansion of macro
'FIELD_PREP'
62 | #define VD_H_START(value) FIELD_PREP(GENMASK(27, 16), value)
| ^~~~~~~~~~
> drivers/gpu/drm/meson/meson_overlay.c:435:40: note: in expansion
of macro 'VD_H_START'
435 | priv->viu.vpp_blend_vd2_h_start_end =
VD_H_START(hd_start_lines) |
| ^~~~~~~~~~
vim +/FIELD_PREP +148 drivers/gpu/drm/meson/meson_overlay.c
146
147 /* AFBC_PIXEL_HOR_SCOPE */
148 #define AFBC_DEC_PIXEL_BGN_H(value) FIELD_PREP(GENMASK(28, 16),
value)
149 #define AFBC_DEC_PIXEL_END_H(value) FIELD_PREP(GENMASK(12, 0), value)
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org