CC: [email protected]
CC: [email protected]
TO: Christoph Hellwig <[email protected]>

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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

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/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to