All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-xfs:iomap-iter 20/29] fs/iomap/seek.c:102 iomap_seek_data() error: uninitialized symbol 'hole_pos'.
@ 2021-07-26 21:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-26 21:40 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2819 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christoph Hellwig <hch@lst.de>

tree:   git://git.infradead.org/users/hch/xfs iomap-iter
head:   2fac31bc73d764be3146889ddb8a33151486cea0
commit: e53ee58c12fe0d1de5294e01a190e3eb2f626de4 [20/29] iomap: switch iomap_seek_data to use iomap_iter
:::::: branch date: 13 hours ago
:::::: commit date: 13 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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
fs/iomap/seek.c:102 iomap_seek_data() error: uninitialized symbol 'hole_pos'.

Old smatch warnings:
fs/iomap/seek.c:55 iomap_seek_hole() error: uninitialized symbol 'hole_pos'.

vim +/hole_pos +102 fs/iomap/seek.c

56a178981d4707 Darrick J. Wong   2019-07-15   79  
56a178981d4707 Darrick J. Wong   2019-07-15   80  loff_t
56a178981d4707 Darrick J. Wong   2019-07-15   81  iomap_seek_data(struct inode *inode, loff_t offset, const struct iomap_ops *ops)
56a178981d4707 Darrick J. Wong   2019-07-15   82  {
56a178981d4707 Darrick J. Wong   2019-07-15   83  	loff_t size = i_size_read(inode);
e53ee58c12fe0d Christoph Hellwig 2021-07-18   84  	struct iomap_iter iter = {
e53ee58c12fe0d Christoph Hellwig 2021-07-18   85  		.inode	= inode,
e53ee58c12fe0d Christoph Hellwig 2021-07-18   86  		.pos	= offset,
e53ee58c12fe0d Christoph Hellwig 2021-07-18   87  		.flags	= IOMAP_REPORT,
e53ee58c12fe0d Christoph Hellwig 2021-07-18   88  	};
e53ee58c12fe0d Christoph Hellwig 2021-07-18   89  	loff_t hole_pos;
e53ee58c12fe0d Christoph Hellwig 2021-07-18   90  	int ret;
56a178981d4707 Darrick J. Wong   2019-07-15   91  
56a178981d4707 Darrick J. Wong   2019-07-15   92  	/* Nothing to be found before or beyond the end of the file. */
56a178981d4707 Darrick J. Wong   2019-07-15   93  	if (offset < 0 || offset >= size)
56a178981d4707 Darrick J. Wong   2019-07-15   94  		return -ENXIO;
56a178981d4707 Darrick J. Wong   2019-07-15   95  
e53ee58c12fe0d Christoph Hellwig 2021-07-18   96  	iter.len = size - offset;
e53ee58c12fe0d Christoph Hellwig 2021-07-18   97  	while ((ret = iomap_iter(&iter, ops)) > 0)
e53ee58c12fe0d Christoph Hellwig 2021-07-18   98  		iter.processed = iomap_seek_data_iter(&iter, &hole_pos);
56a178981d4707 Darrick J. Wong   2019-07-15   99  	if (ret < 0)
56a178981d4707 Darrick J. Wong   2019-07-15  100  		return ret;
e53ee58c12fe0d Christoph Hellwig 2021-07-18  101  	if (iter.len)
e53ee58c12fe0d Christoph Hellwig 2021-07-18 @102  		return hole_pos;

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37504 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-26 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 21:40 [hch-xfs:iomap-iter 20/29] fs/iomap/seek.c:102 iomap_seek_data() error: uninitialized symbol 'hole_pos' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.