* [linuxtv-media:master 319/322] include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
@ 2020-09-13 2:30 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-09-13 2:30 UTC (permalink / raw)
To: Daniel W. S. Almeida; +Cc: kbuild-all, linux-media, Mauro Carvalho Chehab
[-- Attachment #1: Type: text/plain, Size: 13555 bytes --]
tree: git://linuxtv.org/media_tree.git master
head: c4176e12a755d0c761736c14bd2656ffc733eb95
commit: f90cf6079bf67988f8b1ad1ade70fc89d0080905 [319/322] media: vidtv: add a bridge driver
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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 f90cf6079bf67988f8b1ad1ade70fc89d0080905
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/bits.h:22,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from drivers/media/test-drivers/vidtv/vidtv_psi.c:18:
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_sdt_serv_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:103:9: note: in expansion of macro 'GENMASK'
103 | mask = GENMASK(0, 11);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_stream_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:118:9: note: in expansion of macro 'GENMASK'
118 | mask = GENMASK(0, 9);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:133:9: note: in expansion of macro 'GENMASK'
133 | mask = GENMASK(0, 9);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_get_sec_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:148:9: note: in expansion of macro 'GENMASK'
148 | mask = GENMASK(0, 11);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_get_pat_program_pid':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:163:9: note: in expansion of macro 'GENMASK'
163 | mask = GENMASK(0, 12);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_stream_get_elem_pid':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:178:9: note: in expansion of macro 'GENMASK'
178 | mask = GENMASK(0, 12);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_set_sec_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:209:9: note: in expansion of macro 'GENMASK'
209 | mask = GENMASK(13, 15);
| ^~~~~~~
--
In file included from include/linux/bits.h:22,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
drivers/media/test-drivers/vidtv/vidtv_pes.c: In function 'vidtv_pes_write_pts_dts':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:94:10: note: in expansion of macro 'GENMASK'
94 | mask1 = GENMASK(30, 32);
| ^~~~~~~
In file included from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:94:10: note: in expansion of macro 'GENMASK'
94 | mask1 = GENMASK(30, 32);
| ^~~~~~~
In file included from include/linux/bits.h:22,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:95:10: note: in expansion of macro 'GENMASK'
95 | mask2 = GENMASK(15, 29);
| ^~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:96:10: note: in expansion of macro 'GENMASK'
96 | mask3 = GENMASK(0, 14);
| ^~~~~~~
--
In file included from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/media/test-drivers/vidtv/vidtv_s302m.c:21:
drivers/media/test-drivers/vidtv/vidtv_s302m.c: In function 'vidtv_s302m_write_frames':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro 'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:524:21: note: in expansion of macro 'KERN_WARNING'
524 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_s302m.c:425:4: note: in expansion of macro 'pr_warn_ratelimited'
425 | pr_warn_ratelimited("write size was %d, expected %lu\n",
| ^~~~~~~~~~~~~~~~~~~
At top level:
drivers/media/test-drivers/vidtv/vidtv_s302m.c:41:17: warning: 'reverse' defined but not used [-Wunused-const-variable=]
41 | static const u8 reverse[256] = {
| ^~~~~~~
git remote add linuxtv-media git://linuxtv.org/media_tree.git
git fetch --no-tags linuxtv-media master
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
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@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 57810 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linuxtv-media:master 319/322] include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
@ 2020-09-13 2:30 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-09-13 2:30 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 13785 bytes --]
tree: git://linuxtv.org/media_tree.git master
head: c4176e12a755d0c761736c14bd2656ffc733eb95
commit: f90cf6079bf67988f8b1ad1ade70fc89d0080905 [319/322] media: vidtv: add a bridge driver
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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 f90cf6079bf67988f8b1ad1ade70fc89d0080905
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/bits.h:22,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from drivers/media/test-drivers/vidtv/vidtv_psi.c:18:
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_sdt_serv_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:103:9: note: in expansion of macro 'GENMASK'
103 | mask = GENMASK(0, 11);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_stream_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:118:9: note: in expansion of macro 'GENMASK'
118 | mask = GENMASK(0, 9);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:133:9: note: in expansion of macro 'GENMASK'
133 | mask = GENMASK(0, 9);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_get_sec_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:148:9: note: in expansion of macro 'GENMASK'
148 | mask = GENMASK(0, 11);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_get_pat_program_pid':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:163:9: note: in expansion of macro 'GENMASK'
163 | mask = GENMASK(0, 12);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_stream_get_elem_pid':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:178:9: note: in expansion of macro 'GENMASK'
178 | mask = GENMASK(0, 12);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_set_sec_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:209:9: note: in expansion of macro 'GENMASK'
209 | mask = GENMASK(13, 15);
| ^~~~~~~
--
In file included from include/linux/bits.h:22,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
drivers/media/test-drivers/vidtv/vidtv_pes.c: In function 'vidtv_pes_write_pts_dts':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:94:10: note: in expansion of macro 'GENMASK'
94 | mask1 = GENMASK(30, 32);
| ^~~~~~~
In file included from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:94:10: note: in expansion of macro 'GENMASK'
94 | mask1 = GENMASK(30, 32);
| ^~~~~~~
In file included from include/linux/bits.h:22,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:95:10: note: in expansion of macro 'GENMASK'
95 | mask2 = GENMASK(15, 29);
| ^~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:96:10: note: in expansion of macro 'GENMASK'
96 | mask3 = GENMASK(0, 14);
| ^~~~~~~
--
In file included from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/media/test-drivers/vidtv/vidtv_s302m.c:21:
drivers/media/test-drivers/vidtv/vidtv_s302m.c: In function 'vidtv_s302m_write_frames':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro 'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:524:21: note: in expansion of macro 'KERN_WARNING'
524 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_s302m.c:425:4: note: in expansion of macro 'pr_warn_ratelimited'
425 | pr_warn_ratelimited("write size was %d, expected %lu\n",
| ^~~~~~~~~~~~~~~~~~~
At top level:
drivers/media/test-drivers/vidtv/vidtv_s302m.c:41:17: warning: 'reverse' defined but not used [-Wunused-const-variable=]
41 | static const u8 reverse[256] = {
| ^~~~~~~
git remote add linuxtv-media git://linuxtv.org/media_tree.git
git fetch --no-tags linuxtv-media master
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
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@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 57810 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-13 2:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13 2:30 [linuxtv-media:master 319/322] include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>' kernel test robot
2020-09-13 2:30 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.