[linux-next:master 6459/10444] fs/crypto/block.c:350:17: sparse: sparse: cast from restricted blk_status_t

kernel test robot <[email protected]> Fri, 31 Jul 2026 07:14:15 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   78bc8af4affb9a732504eb22eeac7d1e50883853
commit: 1944540c405083a966f898e9096c36888887a49e [6459/10444] fscrypt: Merge bio.c and inline_crypt.c into block.c
config: mips-randconfig-r112-20260731 (https://download.01.org/0day-ci/archive/20260731/[email protected]/config)
compiler: mips64-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260731/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> fs/crypto/block.c:350:17: sparse: sparse: cast from restricted blk_status_t
>> fs/crypto/block.c:350:17: sparse: sparse: cast from restricted blk_status_t
>> fs/crypto/block.c:350:17: sparse: sparse: cast to restricted blk_status_t

vim +350 fs/crypto/block.c

   344	
   345	static void fscrypt_zeroout_range_end_io(struct bio *bio)
   346	{
   347		struct fscrypt_zero_done *done = bio->bi_private;
   348	
   349		if (bio->bi_status)
 > 350			cmpxchg(&done->status, 0, bio->bi_status);
   351		fscrypt_zeroout_range_done(done);
   352		bio_put(bio);
   353	}
   354	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki