[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210131201.AjloNyA5-lkp@intel.com>
Date: Thu, 13 Oct 2022 21:48:04 +0800
From: kernel test robot <lkp@...el.com>
To: Bart Van Assche <bvanassche@....org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [bvanassche:block-barrier 1/4] kernel/trace/blktrace.c:208:69:
warning: left shift count is negative
tree: https://github.com/bvanassche/linux block-barrier
head: dde514bc95cdec20aea9a5cd9186cd18272d3552
commit: b2789e48235e043851a30f528686b41604f35d89 [1/4] block: Introduce the REQ_FLUSH_IS_BARRIER flag
config: s390-allmodconfig
compiler: s390-linux-gcc (GCC) 12.1.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/bvanassche/linux/commit/b2789e48235e043851a30f528686b41604f35d89
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche block-barrier
git checkout b2789e48235e043851a30f528686b41604f35d89
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
kernel/trace/blktrace.c: In function '__blk_add_trace':
>> kernel/trace/blktrace.c:208:69: warning: left shift count is negative [-Wshift-count-negative]
208 | #define MASK_TC_BIT(rw, __name) ((__force u32)(rw & REQ_ ## __name) << \
| ^~
kernel/trace/blktrace.c:239:17: note: in expansion of macro 'MASK_TC_BIT'
239 | what |= MASK_TC_BIT(opf, PREFLUSH);
| ^~~~~~~~~~~
vim +208 kernel/trace/blktrace.c
7b6d91daee5cac kernel/trace/blktrace.c Christoph Hellwig 2010-08-07 206
35ba8f7083e876 block/blktrace.c David Woodhouse 2008-08-10 207 /* The ilog2() calls fall out because they're constant */
919dbca8670d0f kernel/trace/blktrace.c Bart Van Assche 2022-07-14 @208 #define MASK_TC_BIT(rw, __name) ((__force u32)(rw & REQ_ ## __name) << \
7b6d91daee5cac kernel/trace/blktrace.c Christoph Hellwig 2010-08-07 209 (ilog2(BLK_TC_ ## __name) + BLK_TC_SHIFT - __REQ_ ## __name))
2056a782f8e7e6 block/blktrace.c Jens Axboe 2006-03-23 210
:::::: The code at line 208 was first introduced by commit
:::::: 919dbca8670d0f7828dfbb2f9b434ac22dca8d2e blktrace: Use the new blk_opf_t type
:::::: TO: Bart Van Assche <bvanassche@....org>
:::::: CC: Jens Axboe <axboe@...nel.dk>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (119822 bytes)
Powered by blists - more mailing lists