tree:
https://github.com/kdave/btrfs-devel.git ext/aota/zoned-7
head: 17046312f8c0a16a96b4b3a145f4b30be84e6ede
commit: d7a064645672c0cb922ca0bc60c687d22f0c1fa4 [132/162] btrfs: implement log-structured
superblock for ZONED mode
config: x86_64-randconfig-a006-20200913 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
b2c32c90bab09a6e2c1f370429db26017a182143)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout d7a064645672c0cb922ca0bc60c687d22f0c1fa4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/zoned.c:598:9: warning: variable 'ret' is
uninitialized when used here [-Wuninitialized]
return ret;
^~~
fs/btrfs/zoned.c:575:9: note: initialize the variable 'ret' to silence this
warning
int ret;
^
= 0
1 warning generated.
#
https://github.com/kdave/btrfs-devel/commit/d7a064645672c0cb922ca0bc60c68...
git remote add kdave-btrfs-devel
https://github.com/kdave/btrfs-devel.git
git fetch --no-tags kdave-btrfs-devel ext/aota/zoned-7
git checkout d7a064645672c0cb922ca0bc60c687d22f0c1fa4
vim +/ret +598 fs/btrfs/zoned.c
570
571 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror)
572 {
573 struct btrfs_zoned_device_info *zinfo = device->zone_info;
574 struct blk_zone *zone;
575 int ret;
576
577 if (!is_sb_log_zone(zinfo, mirror))
578 return 0;
579
580 zone = &zinfo->sb_zones[2 * mirror];
581 if (zone->cond != BLK_ZONE_COND_FULL) {
582 if (zone->cond == BLK_ZONE_COND_EMPTY)
583 zone->cond = BLK_ZONE_COND_IMP_OPEN;
584 zone->wp += (BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT);
585 if (zone->wp == zone->start + zone->len)
586 zone->cond = BLK_ZONE_COND_FULL;
587 return 0;
588 }
589
590 zone++;
591 ASSERT(zone->cond != BLK_ZONE_COND_FULL);
592 if (zone->cond == BLK_ZONE_COND_EMPTY)
593 zone->cond = BLK_ZONE_COND_IMP_OPEN;
594 zone->wp += (BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT);
595 if (zone->wp == zone->start + zone->len)
596 zone->cond = BLK_ZONE_COND_FULL;
597
598 return ret;
599 }
600
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org