On Mon, Apr 19, 2021 at 02:57:10PM +0800, kernel test robot wrote: > Hi Konstantin, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on mkp-scsi/for-next] > [also build test WARNING on scsi/for-next v5.12-rc8 next-20210416] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/0day-ci/linux/commits/Konstantin-Shelekhin/scsi-target-Introduce-the-version-descriptors/20210413-064553 > base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next > config: ia64-randconfig-s031-20210419 (attached as .config) > compiler: ia64-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 > # apt-get install sparse > # sparse version: v0.6.3-330-g09ec74f6-dirty > # https://github.com/0day-ci/linux/commit/88a1d08b46b716d2e970659571d353faa4475a88 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Konstantin-Shelekhin/scsi-target-Introduce-the-version-descriptors/20210413-064553 > git checkout 88a1d08b46b716d2e970659571d353faa4475a88 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=ia64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@xxxxxxxxx> > > > sparse warnings: (new ones prefixed by >>) > drivers/target/target_core_spc.c: note: in included file (through arch/ia64/include/asm/unaligned.h): > include/linux/unaligned/be_byteshift.h:26:16: sparse: sparse: cast truncates bits from constant value (460 becomes 60) > >> include/linux/unaligned/be_byteshift.h:26:16: sparse: sparse: cast truncates bits from constant value (4c0 becomes c0) > > vim +26 include/linux/unaligned/be_byteshift.h > > 064106a91be5e7 Harvey Harrison 2008-04-29 22 > 064106a91be5e7 Harvey Harrison 2008-04-29 23 static inline void __put_unaligned_be16(u16 val, u8 *p) > 064106a91be5e7 Harvey Harrison 2008-04-29 24 { > 064106a91be5e7 Harvey Harrison 2008-04-29 25 *p++ = val >> 8; > 064106a91be5e7 Harvey Harrison 2008-04-29 @26 *p++ = val; > 064106a91be5e7 Harvey Harrison 2008-04-29 27 } > 064106a91be5e7 Harvey Harrison 2008-04-29 28 This looks like a sparse issue to me, no?