Hi "Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on next-20200515]
[cannot apply to v5.7-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Daniel-W-S-Almeida/media-vidtv-i...
base:
git://linuxtv.org/media_tree.git master
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=parisc
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 >>, old ones prefixed by <<):
In file included from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:18:
drivers/media/test-drivers/vidtv/vidtv_pes.c: In function
'vidtv_pes_write_pts_dts':
> include/linux/bits.h:37:11: warning: right shift count is
negative [-Wshift-count-negative]
37 | (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
| ^~
include/linux/bits.h:39:31: note: in expansion of macro '__GENMASK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
> drivers/media/test-drivers/vidtv/vidtv_pes.c:96:33: note: in
expansion of macro 'GENMASK'
96 | pts_dts.pts1 = (args.pts &
GENMASK(32, 30)) >> 30;
| ^~~~~~~
> include/linux/bits.h:37:11: warning: right shift count is
negative [-Wshift-count-negative]
37 | (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
| ^~
include/linux/bits.h:39:31: note: in expansion of macro '__GENMASK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:105:33: note: in expansion of macro
'GENMASK'
105 | pts_dts.dts1 = (args.dts & GENMASK(32, 30)) >> 30;
| ^~~~~~~
> include/linux/bits.h:37:11: warning: right shift count is
negative [-Wshift-count-negative]
37 | (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
| ^~
include/linux/bits.h:39:31: note: in expansion of macro '__GENMASK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:117:33: note: in expansion of macro
'GENMASK'
117 | pts_dts.pts1 = (args.pts & GENMASK(32, 30)) >> 30;
| ^~~~~~~
vim +37 include/linux/bits.h
295bcca84916cb Rikard Falkeborn 2020-04-06 34
295bcca84916cb Rikard Falkeborn 2020-04-06 35 #define __GENMASK(h, l) \
95b980d62d52c4 Masahiro Yamada 2019-07-16 36 (((~UL(0)) - (UL(1) << (l)) + 1)
& \
95b980d62d52c4 Masahiro Yamada 2019-07-16 @37 (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
295bcca84916cb Rikard Falkeborn 2020-04-06 38 #define GENMASK(h, l) \
295bcca84916cb Rikard Falkeborn 2020-04-06 39 (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h,
l))
8bd9cb51daac89 Will Deacon 2018-06-19 40
:::::: The code at line 37 was first introduced by commit
:::::: 95b980d62d52c4c1768ee719e8db3efe27ef52b2 linux/bits.h: make BIT(), GENMASK(), and
friends available in assembly
:::::: TO: Masahiro Yamada <yamada.masahiro(a)socionext.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