tree:
https://github.com/jpirko/linux_mlxsw jiri_devel_xmrouter
head: bc7a8c3da6b90f06678e2463e283dba01dd878cd
commit: 47078f0ef7270df6be962ecb32bb8a8366087027 [28/39] mlxsw: spectrum_router_xm:
Introduce basic XM cache flushing
config: mips-randconfig-r032-20201014 (attached as .config)
compiler: mips-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
#
https://github.com/jpirko/linux_mlxsw/commit/47078f0ef7270df6be962ecb32bb...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_xmrouter
git checkout 47078f0ef7270df6be962ecb32bb8a8366087027
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:4:
drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c: In function
'mlxsw_sp_router_xm_flush_mask4':
> include/linux/bits.h:36:11: warning: right shift count is
negative [-Wshift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
| ^~
include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:353:9: note: in expansion of
macro 'GENMASK'
353 | return GENMASK(32, 32 - prefix_len);
| ^~~~~~~
vim +36 include/linux/bits.h
295bcca84916cb5 Rikard Falkeborn 2020-04-06 33
295bcca84916cb5 Rikard Falkeborn 2020-04-06 34 #define __GENMASK(h, l) \
95b980d62d52c4c Masahiro Yamada 2019-07-16 35 (((~UL(0)) - (UL(1) << (l)) + 1)
& \
95b980d62d52c4c Masahiro Yamada 2019-07-16 @36 (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
295bcca84916cb5 Rikard Falkeborn 2020-04-06 37 #define GENMASK(h, l) \
295bcca84916cb5 Rikard Falkeborn 2020-04-06 38 (GENMASK_INPUT_CHECK(h, l) +
__GENMASK(h, l))
8bd9cb51daac893 Will Deacon 2018-06-19 39
:::::: The code at line 36 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