tree:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
io_uring-bio-cache
head: bd966393baf4c2d0d6a1fd38881c0b73f6f79d5c
commit: ca5ad15372deeaf2dc37c0acc72423f9097a0f33 [2/7] bio: add allocation cache
abstraction
config: i386-randconfig-s031-20210309 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block io_uring-bio-cache
git checkout ca5ad15372deeaf2dc37c0acc72423f9097a0f33
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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/bio.c:246:61: sparse: sparse: incorrect type in assignment
(different base types) @@ expected unsigned short bi_write_hint @@ got restricted
blk_status_t [usertype] bi_status @@
block/bio.c:246:61: sparse: expected
unsigned short bi_write_hint
block/bio.c:246:61: sparse: got restricted blk_status_t [usertype] bi_status
vim +246 block/bio.c
240
241 static inline void __bio_init(struct bio *bio)
242 {
243 bio->bi_next = NULL;
244 bio->bi_bdev = NULL;
245 bio->bi_opf = 0;
246 bio->bi_flags = bio->bi_ioprio = bio->bi_write_hint =
bio->bi_status = 0;
247 bio->bi_iter.bi_sector = 0;
248 bio->bi_iter.bi_size = 0;
249 bio->bi_iter.bi_idx = 0;
250 bio->bi_iter.bi_bvec_done = 0;
251 bio->bi_end_io = NULL;
252 bio->bi_private = NULL;
253 #ifdef CONFIG_BLK_CGROUP
254 bio->bi_blkg = NULL;
255 bio->bi_issue.value = 0;
256 #ifdef CONFIG_BLK_CGROUP_IOCOST
257 bio->bi_iocost_cost = 0;
258 #endif
259 #endif
260 #ifdef CONFIG_BLK_INLINE_ENCRYPTION
261 bio->bi_crypt_context = NULL;
262 #endif
263 #ifdef CONFIG_BLK_DEV_INTEGRITY
264 bio->bi_integrity = NULL;
265 #endif
266 bio->bi_vcnt = 0;
267 }
268
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org