tree:
git://git.infradead.org/users/hch/block.git bio_alloc-cleanup
head: 6e74740a44aecf40f23fc9baa4fe7844e0543046
commit: 6e74740a44aecf40f23fc9baa4fe7844e0543046 [28/28] block: pass a block_device to
bio_clone_fast
config: arm64-randconfig-r015-20220113
(
https://download.01.org/0day-ci/archive/20220114/202201140821.C6r5Z4QY-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.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
git remote add hch-block
git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block bio_alloc-cleanup
git checkout 6e74740a44aecf40f23fc9baa4fe7844e0543046
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arm64 SHELL=/bin/bash fs/btrfs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/btrfs/extent_io.c: In function 'btrfs_bio_clone_partial':
> fs/btrfs/extent_io.c:3176:15: warning: 'bio' is used
uninitialized [-Wuninitialized]
3176 | bio =
bio_alloc_clone(bio->bi_bdev, orig, GFP_NOFS, &btrfs_bioset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/bio +3176 fs/btrfs/extent_io.c
3167
3168 struct bio *btrfs_bio_clone_partial(struct bio *orig, u64 offset, u64 size)
3169 {
3170 struct bio *bio;
3171 struct btrfs_bio *bbio;
3172
3173 ASSERT(offset <= UINT_MAX && size <= UINT_MAX);
3174
3175 /* this will never fail when it's backed by a bioset */
3176 bio = bio_alloc_clone(bio->bi_bdev, orig, GFP_NOFS,
&btrfs_bioset);
3177 ASSERT(bio);
3178
3179 bbio = btrfs_bio(bio);
3180 btrfs_bio_init(bbio);
3181
3182 bio_trim(bio, offset >> 9, size >> 9);
3183 bbio->iter = bio->bi_iter;
3184 return bio;
3185 }
3186
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org