Re: [PATCH net-next 01/10] net: libwx: Add irq flow functions
From: kernel test robot <hidden>
Date: 2023-01-19 18:15:42
Also in:
llvm, oe-kbuild-all
Hi Jiawen, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Jiawen-Wu/net-libwx-Add-irq-flow-functions/20230118-154258 patch link: https://lore.kernel.org/r/20230118065504.3075474-2-jiawenwu%40trustnetic.com patch subject: [PATCH net-next 01/10] net: libwx: Add irq flow functions config: arm-randconfig-c002-20230118 (https://download.01.org/0day-ci/archive/20230120/202301200204.6nSc8Rre-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/f807094d578ff552800fe8f9fd9f29ad766384b6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jiawen-Wu/net-libwx-Add-irq-flow-functions/20230118-154258 git checkout f807094d578ff552800fe8f9fd9f29ad766384b6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/ethernet/wangxun/libwx/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot [off-list ref] All warnings (new ones prefixed by >>):
quoted
drivers/net/ethernet/wangxun/libwx/wx_hw.c:890:41: warning: shift count >= width of type [-Wshift-count-overflow]
wr32(wx, WX_PX_ISB_ADDR_H, wx->isb_dma >> 32);
^ ~~
drivers/net/ethernet/wangxun/libwx/wx_type.h:478:37: note: expanded from macro 'wr32'
#define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
^~~~~
arch/arm/include/asm/io.h:290:51: note: expanded from macro 'writel'
#define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); })
^
arch/arm/include/asm/io.h:282:68: note: expanded from macro 'writel_relaxed'
#define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c)
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__cpu_to_le32'
#define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
^
1 warning generated.
vim +890 drivers/net/ethernet/wangxun/libwx/wx_hw.c
885
886 static void wx_configure_isb(struct wx *wx)
887 {
888 /* set ISB Address */
889 wr32(wx, WX_PX_ISB_ADDR_L, wx->isb_dma & DMA_BIT_MASK(32));
> 890 wr32(wx, WX_PX_ISB_ADDR_H, wx->isb_dma >> 32);
891 }
892
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests