tree:
https://github.com/afaerber/linux.git rtd1295-next
head: 89dddc4c437454ce2c1df9bf0503a7efdfcf1102
commit: ded4ad037ae38dd87bf47992d25d82e620241c09 [66/165] pinctrl: Add Realtek RTD1295
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout ded4ad037ae38dd87bf47992d25d82e620241c09
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the afaerber/rtd1295-next HEAD 89dddc4c437454ce2c1df9bf0503a7efdfcf1102 builds
fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
> include/linux/build_bug.h:16:51: error: negative width in
bit-field '<anonymous>'
#define BUILD_BUG_ON_ZERO(e)
((int)(sizeof(struct { int:(-!!(e)); })))
^
drivers/pinctrl/pinctrl-rtd119x.c:50:15: note: in definition of macro
'RTK_PIN_MUX'
.mux_mask = _mux_mask, \
^~~~~~~~~
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
(BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~~~~~~~~~~~
drivers/pinctrl/pinctrl-rtd1295.h:1272:29: note: in expansion of macro
'GENMASK'
RTK_PIN_MUX(nf_dd_7, 0x00, GENMASK(13, 30),
^~~~~~~
vim +16 include/linux/build_bug.h
bc6245e5efd70c Ian Abbott 2017-07-10 6
bc6245e5efd70c Ian Abbott 2017-07-10 7 #ifdef __CHECKER__
bc6245e5efd70c Ian Abbott 2017-07-10 8 #define BUILD_BUG_ON_ZERO(e) (0)
bc6245e5efd70c Ian Abbott 2017-07-10 9 #else /* __CHECKER__ */
bc6245e5efd70c Ian Abbott 2017-07-10 10 /*
bc6245e5efd70c Ian Abbott 2017-07-10 11 * Force a compilation error if condition
is true, but also produce a
8788994376d84d Rikard Falkeborn 2019-12-04 12 * result (of value 0 and type int), so
the expression can be used
bc6245e5efd70c Ian Abbott 2017-07-10 13 * e.g. in a structure initializer (or
where-ever else comma expressions
bc6245e5efd70c Ian Abbott 2017-07-10 14 * aren't permitted).
bc6245e5efd70c Ian Abbott 2017-07-10 15 */
8788994376d84d Rikard Falkeborn 2019-12-04 @16 #define BUILD_BUG_ON_ZERO(e)
((int)(sizeof(struct { int:(-!!(e)); })))
527edbc18a70e7 Masahiro Yamada 2019-01-03 17 #endif /* __CHECKER__ */
527edbc18a70e7 Masahiro Yamada 2019-01-03 18
:::::: The code at line 16 was first introduced by commit
:::::: 8788994376d84d627450fd0d67deb6a66ddf07d7 linux/build_bug.h: change type to int
:::::: TO: Rikard Falkeborn <rikard.falkeborn(a)gmail.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