Hi Jens,
I love your patch! Perhaps something to improve:
[auto build test WARNING on axboe-block/for-next]
[cannot apply to v5.15 next-20211109]
[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/Jens-Axboe/Last-round-of-alloc-s...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: riscv-randconfig-s032-20211019 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.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.4-dirty
#
https://github.com/0day-ci/linux/commit/9f52e0a0d7ca51980ab3f426f70e652d3...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Jens-Axboe/Last-round-of-alloc-side-optimizations/20211019-233352
git checkout 9f52e0a0d7ca51980ab3f426f70e652d3bd2a000
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv
SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
block/blk-mq-tag.c: note: in included file (through block/blk.h):
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t
degrades to integer
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
--
> block/blk-mq.c:311:32: sparse: sparse: restricted req_flags_t
degrades to integer
block/blk-mq.c:320:32: sparse: sparse: invalid assignment:
|=
block/blk-mq.c:320:32: sparse: left side has type unsigned int
block/blk-mq.c:320:32: sparse: right side has type restricted req_flags_t
block/blk-mq.c:322:32: sparse: sparse: invalid assignment: |=
block/blk-mq.c:322:32: sparse: left side has type unsigned int
block/blk-mq.c:322:32: sparse: right side has type restricted req_flags_t
block/blk-mq.c:323:22: sparse: sparse: incorrect type in assignment (different base
types) @@ expected restricted req_flags_t [usertype] rq_flags @@ got unsigned int
rq_flags @@
block/blk-mq.c:323:22: sparse: expected restricted req_flags_t [usertype] rq_flags
block/blk-mq.c:323:22: sparse: got unsigned int rq_flags
> block/blk-mq.c:474:47: sparse: sparse: incorrect type in
initializer (different base types) @@ expected unsigned int rq_flags @@ got
restricted req_flags_t @@
block/blk-mq.c:474:47: sparse: expected unsigned
int rq_flags
block/blk-mq.c:474:47: sparse: got restricted req_flags_t
block/blk-mq.c:504:47: sparse: sparse: incorrect type in initializer (different base
types) @@ expected unsigned int rq_flags @@ got restricted req_flags_t @@
block/blk-mq.c:504:47: sparse: expected unsigned int rq_flags
block/blk-mq.c:504:47: sparse: got restricted req_flags_t
block/blk-mq.c:2433:55: sparse: sparse: incorrect type in initializer (different base
types) @@ expected unsigned int rq_flags @@ got restricted req_flags_t @@
block/blk-mq.c:2433:55: sparse: expected unsigned int rq_flags
block/blk-mq.c:2433:55: sparse: got restricted req_flags_t
block/blk-mq.c: note: in included file (through block/blk.h):
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t
degrades to integer
vim +169 block/blk-mq.h
166
167 static inline struct blk_mq_tags *blk_mq_tags_from_data(struct blk_mq_alloc_data
*data)
168 {
169 if (!(data->rq_flags & RQF_ELV))
170 return
data->hctx->tags;
171 return data->hctx->sched_tags;
172 }
173
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org