CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Christoph Hellwig <h...@lst.de>
tree: git://git.infradead.org/users/hch/xfs iomap-iter head: 2fac31bc73d764be3146889ddb8a33151486cea0 commit: 9d25d143d0ce8c8ad4208f7217b1f3131abc3127 [19/29] iomap: switch iomap_seek_hole to use iomap_iter :::::: branch date: 11 hours ago :::::: commit date: 11 hours ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> Reported-by: Dan Carpenter <dan.carpen...@oracle.com> smatch warnings: fs/iomap/seek.c:55 iomap_seek_hole() error: uninitialized symbol 'hole_pos'. vim +/hole_pos +55 fs/iomap/seek.c 56a178981d4707 Darrick J. Wong 2019-07-15 32 56a178981d4707 Darrick J. Wong 2019-07-15 33 loff_t 56a178981d4707 Darrick J. Wong 2019-07-15 34 iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops) 56a178981d4707 Darrick J. Wong 2019-07-15 35 { 56a178981d4707 Darrick J. Wong 2019-07-15 36 loff_t size = i_size_read(inode); 9d25d143d0ce8c Christoph Hellwig 2021-07-14 37 struct iomap_iter iter = { 9d25d143d0ce8c Christoph Hellwig 2021-07-14 38 .inode = inode, 9d25d143d0ce8c Christoph Hellwig 2021-07-14 39 .pos = offset, 9d25d143d0ce8c Christoph Hellwig 2021-07-14 40 .flags = IOMAP_REPORT, 9d25d143d0ce8c Christoph Hellwig 2021-07-14 41 }; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 42 loff_t hole_pos; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 43 int ret; 56a178981d4707 Darrick J. Wong 2019-07-15 44 56a178981d4707 Darrick J. Wong 2019-07-15 45 /* Nothing to be found before or beyond the end of the file. */ 56a178981d4707 Darrick J. Wong 2019-07-15 46 if (offset < 0 || offset >= size) 56a178981d4707 Darrick J. Wong 2019-07-15 47 return -ENXIO; 56a178981d4707 Darrick J. Wong 2019-07-15 48 9d25d143d0ce8c Christoph Hellwig 2021-07-14 49 iter.len = size - offset; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 50 while ((ret = iomap_iter(&iter, ops)) > 0) 9d25d143d0ce8c Christoph Hellwig 2021-07-14 51 iter.processed = iomap_seek_hole_iter(&iter, &hole_pos); 56a178981d4707 Darrick J. Wong 2019-07-15 52 if (ret < 0) 56a178981d4707 Darrick J. Wong 2019-07-15 53 return ret; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 54 if (iter.len) 9d25d143d0ce8c Christoph Hellwig 2021-07-14 @55 return hole_pos; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 56 return size; 56a178981d4707 Darrick J. Wong 2019-07-15 57 } 56a178981d4707 Darrick J. Wong 2019-07-15 58 EXPORT_SYMBOL_GPL(iomap_seek_hole); 56a178981d4707 Darrick J. Wong 2019-07-15 59 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org