All of lore.kernel.org
 help / color / mirror / Atom feed
* [kdave-btrfs-devel:misc-next 48/48] fs/btrfs/inode.c:6619:4: error: 'err' undeclared
@ 2020-08-24 18:44 kernel test robot
  2020-08-24 19:59 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-08-24 18:44 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/kdave/btrfs-devel.git misc-next
head:   82b9610cdfabb8ac550846d0342c2d2f6ccd08e5
commit: 82b9610cdfabb8ac550846d0342c2d2f6ccd08e5 [48/48] btrfs: remove err variable from btrfs_get_extent
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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 checkout 82b9610cdfabb8ac550846d0342c2d2f6ccd08e5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/btrfs/inode.c: In function 'btrfs_get_extent':
>> fs/btrfs/inode.c:6619:4: error: 'err' undeclared (first use in this function)
    6619 |    err = -EUCLEAN;
         |    ^~~
   fs/btrfs/inode.c:6619:4: note: each undeclared identifier is reported only once for each function it appears in

# https://github.com/kdave/btrfs-devel/commit/82b9610cdfabb8ac550846d0342c2d2f6ccd08e5
git remote add kdave-btrfs-devel https://github.com/kdave/btrfs-devel.git
git fetch --no-tags kdave-btrfs-devel misc-next
git checkout 82b9610cdfabb8ac550846d0342c2d2f6ccd08e5
vim +/err +6619 fs/btrfs/inode.c

c8b978188c9a0f Chris Mason        2008-10-29  6512  
39b07b5d7072f8 Omar Sandoval      2019-12-02  6513  /**
39b07b5d7072f8 Omar Sandoval      2019-12-02  6514   * btrfs_get_extent - Lookup the first extent overlapping a range in a file.
39b07b5d7072f8 Omar Sandoval      2019-12-02  6515   * @inode:	file to search in
39b07b5d7072f8 Omar Sandoval      2019-12-02  6516   * @page:	page to read extent data into if the extent is inline
39b07b5d7072f8 Omar Sandoval      2019-12-02  6517   * @pg_offset:	offset into @page to copy to
39b07b5d7072f8 Omar Sandoval      2019-12-02  6518   * @start:	file offset
39b07b5d7072f8 Omar Sandoval      2019-12-02  6519   * @len:	length of range starting at @start
39b07b5d7072f8 Omar Sandoval      2019-12-02  6520   *
39b07b5d7072f8 Omar Sandoval      2019-12-02  6521   * This returns the first &struct extent_map which overlaps with the given
39b07b5d7072f8 Omar Sandoval      2019-12-02  6522   * range, reading it from the B-tree and caching it if necessary. Note that
39b07b5d7072f8 Omar Sandoval      2019-12-02  6523   * there may be more extents which overlap the given range after the returned
39b07b5d7072f8 Omar Sandoval      2019-12-02  6524   * extent_map.
39b07b5d7072f8 Omar Sandoval      2019-12-02  6525   *
39b07b5d7072f8 Omar Sandoval      2019-12-02  6526   * If @page is not NULL and the extent is inline, this also reads the extent
39b07b5d7072f8 Omar Sandoval      2019-12-02  6527   * data directly into the page and marks the extent up to date in the io_tree.
d352ac68148b69 Chris Mason        2008-09-29  6528   *
39b07b5d7072f8 Omar Sandoval      2019-12-02  6529   * Return: ERR_PTR on error, non-NULL extent_map on success.
d352ac68148b69 Chris Mason        2008-09-29  6530   */
fc4f21b1d8d023 Nikolay Borisov    2017-02-20  6531  struct extent_map *btrfs_get_extent(struct btrfs_inode *inode,
39b07b5d7072f8 Omar Sandoval      2019-12-02  6532  				    struct page *page, size_t pg_offset,
39b07b5d7072f8 Omar Sandoval      2019-12-02  6533  				    u64 start, u64 len)
a52d9a8033c454 Chris Mason        2007-08-27  6534  {
3ffbd68c483207 David Sterba       2018-06-29  6535  	struct btrfs_fs_info *fs_info = inode->root->fs_info;
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6536  	int ret = 0;
a52d9a8033c454 Chris Mason        2007-08-27  6537  	u64 extent_start = 0;
a52d9a8033c454 Chris Mason        2007-08-27  6538  	u64 extent_end = 0;
fc4f21b1d8d023 Nikolay Borisov    2017-02-20  6539  	u64 objectid = btrfs_ino(inode);
7e74e235bb31a1 Linus Torvalds     2019-05-01  6540  	int extent_type = -1;
f421950f86bf96 Chris Mason        2008-07-22  6541  	struct btrfs_path *path = NULL;
fc4f21b1d8d023 Nikolay Borisov    2017-02-20  6542  	struct btrfs_root *root = inode->root;
a52d9a8033c454 Chris Mason        2007-08-27  6543  	struct btrfs_file_extent_item *item;
5f39d397dfbe14 Chris Mason        2007-10-15  6544  	struct extent_buffer *leaf;
5f39d397dfbe14 Chris Mason        2007-10-15  6545  	struct btrfs_key found_key;
a52d9a8033c454 Chris Mason        2007-08-27  6546  	struct extent_map *em = NULL;
fc4f21b1d8d023 Nikolay Borisov    2017-02-20  6547  	struct extent_map_tree *em_tree = &inode->extent_tree;
fc4f21b1d8d023 Nikolay Borisov    2017-02-20  6548  	struct extent_io_tree *io_tree = &inode->io_tree;
a52d9a8033c454 Chris Mason        2007-08-27  6549  
890871be854b5f Chris Mason        2009-09-02  6550  	read_lock(&em_tree->lock);
d1310b2e0cd98e Chris Mason        2008-01-24  6551  	em = lookup_extent_mapping(em_tree, start, len);
890871be854b5f Chris Mason        2009-09-02  6552  	read_unlock(&em_tree->lock);
d1310b2e0cd98e Chris Mason        2008-01-24  6553  
a52d9a8033c454 Chris Mason        2007-08-27  6554  	if (em) {
e1c4b7451e22f5 Chris Mason        2008-04-22  6555  		if (em->start > start || em->start + em->len <= start)
e1c4b7451e22f5 Chris Mason        2008-04-22  6556  			free_extent_map(em);
e1c4b7451e22f5 Chris Mason        2008-04-22  6557  		else if (em->block_start == EXTENT_MAP_INLINE && page)
70dec8079d7869 Chris Mason        2008-01-29  6558  			free_extent_map(em);
70dec8079d7869 Chris Mason        2008-01-29  6559  		else
a52d9a8033c454 Chris Mason        2007-08-27  6560  			goto out;
a52d9a8033c454 Chris Mason        2007-08-27  6561  	}
172ddd60a662c4 David Sterba       2011-04-21  6562  	em = alloc_extent_map();
a52d9a8033c454 Chris Mason        2007-08-27  6563  	if (!em) {
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6564  		ret = -ENOMEM;
a52d9a8033c454 Chris Mason        2007-08-27  6565  		goto out;
a52d9a8033c454 Chris Mason        2007-08-27  6566  	}
5f39d397dfbe14 Chris Mason        2007-10-15  6567  	em->start = EXTENT_MAP_HOLE;
445a69449994a3 Chris Mason        2008-11-10  6568  	em->orig_start = EXTENT_MAP_HOLE;
d1310b2e0cd98e Chris Mason        2008-01-24  6569  	em->len = (u64)-1;
c8b978188c9a0f Chris Mason        2008-10-29  6570  	em->block_len = (u64)-1;
f421950f86bf96 Chris Mason        2008-07-22  6571  
f421950f86bf96 Chris Mason        2008-07-22  6572  	path = btrfs_alloc_path();
026fd317828500 Josef Bacik        2011-05-13  6573  	if (!path) {
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6574  		ret = -ENOMEM;
026fd317828500 Josef Bacik        2011-05-13  6575  		goto out;
026fd317828500 Josef Bacik        2011-05-13  6576  	}
bee6ec822a6a68 Liu Bo             2018-08-17  6577  
bee6ec822a6a68 Liu Bo             2018-08-17  6578  	/* Chances are we'll be called again, so go ahead and do readahead */
e4058b54d1e442 David Sterba       2015-11-27  6579  	path->reada = READA_FORWARD;
f421950f86bf96 Chris Mason        2008-07-22  6580  
e49aabd973fd0b Liu Bo             2018-08-25  6581  	/*
e49aabd973fd0b Liu Bo             2018-08-25  6582  	 * Unless we're going to uncompress the inline extent, no sleep would
e49aabd973fd0b Liu Bo             2018-08-25  6583  	 * happen.
e49aabd973fd0b Liu Bo             2018-08-25  6584  	 */
e49aabd973fd0b Liu Bo             2018-08-25  6585  	path->leave_spinning = 1;
e49aabd973fd0b Liu Bo             2018-08-25  6586  
5c9a702ed1724f Nikolay Borisov    2017-12-01  6587  	ret = btrfs_lookup_file_extent(NULL, root, path, objectid, start, 0);
a52d9a8033c454 Chris Mason        2007-08-27  6588  	if (ret < 0) {
a52d9a8033c454 Chris Mason        2007-08-27  6589  		goto out;
b8eeab7fced201 Nikolay Borisov    2018-12-17  6590  	} else if (ret > 0) {
a52d9a8033c454 Chris Mason        2007-08-27  6591  		if (path->slots[0] == 0)
a52d9a8033c454 Chris Mason        2007-08-27  6592  			goto not_found;
a52d9a8033c454 Chris Mason        2007-08-27  6593  		path->slots[0]--;
a52d9a8033c454 Chris Mason        2007-08-27  6594  	}
a52d9a8033c454 Chris Mason        2007-08-27  6595  
5f39d397dfbe14 Chris Mason        2007-10-15  6596  	leaf = path->nodes[0];
5f39d397dfbe14 Chris Mason        2007-10-15  6597  	item = btrfs_item_ptr(leaf, path->slots[0],
a52d9a8033c454 Chris Mason        2007-08-27  6598  			      struct btrfs_file_extent_item);
5f39d397dfbe14 Chris Mason        2007-10-15  6599  	btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
5f39d397dfbe14 Chris Mason        2007-10-15  6600  	if (found_key.objectid != objectid ||
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6601  	    found_key.type != BTRFS_EXTENT_DATA_KEY) {
25a50341b6269b Josef Bacik        2013-10-14  6602  		/*
25a50341b6269b Josef Bacik        2013-10-14  6603  		 * If we backup past the first extent we want to move forward
25a50341b6269b Josef Bacik        2013-10-14  6604  		 * and see if there is an extent in front of us, otherwise we'll
25a50341b6269b Josef Bacik        2013-10-14  6605  		 * say there is a hole for our whole search range which can
25a50341b6269b Josef Bacik        2013-10-14  6606  		 * cause problems.
25a50341b6269b Josef Bacik        2013-10-14  6607  		 */
25a50341b6269b Josef Bacik        2013-10-14  6608  		extent_end = start;
25a50341b6269b Josef Bacik        2013-10-14  6609  		goto next;
a52d9a8033c454 Chris Mason        2007-08-27  6610  	}
a52d9a8033c454 Chris Mason        2007-08-27  6611  
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6612  	extent_type = btrfs_file_extent_type(leaf, item);
5f39d397dfbe14 Chris Mason        2007-10-15  6613  	extent_start = found_key.offset;
a5eeb3d17b979f Filipe Manana      2020-03-09  6614  	extent_end = btrfs_file_extent_end(path);
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6615  	if (extent_type == BTRFS_FILE_EXTENT_REG ||
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6616  	    extent_type == BTRFS_FILE_EXTENT_PREALLOC) {
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6617  		/* Only regular file could have regular/prealloc extent */
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6618  		if (!S_ISREG(inode->vfs_inode.i_mode)) {
881a3a11c2b858 Pavel Machek       2020-08-03 @6619  			err = -EUCLEAN;
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6620  			btrfs_crit(fs_info,
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6621  		"regular/prealloc extent found for non-regular inode %llu",
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6622  				   btrfs_ino(inode));
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6623  			goto out;
6bf9e4bd6a2778 Qu Wenruo          2019-03-13  6624  		}
09ed2f165cb344 Liu Bo             2017-03-10  6625  		trace_btrfs_get_extent_show_fi_regular(inode, leaf, item,
09ed2f165cb344 Liu Bo             2017-03-10  6626  						       extent_start);
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6627  	} else if (extent_type == BTRFS_FILE_EXTENT_INLINE) {
09ed2f165cb344 Liu Bo             2017-03-10  6628  		trace_btrfs_get_extent_show_fi_inline(inode, leaf, item,
09ed2f165cb344 Liu Bo             2017-03-10  6629  						      path->slots[0],
09ed2f165cb344 Liu Bo             2017-03-10  6630  						      extent_start);
9036c10208e1fc Yan Zheng          2008-10-30  6631  	}
25a50341b6269b Josef Bacik        2013-10-14  6632  next:
9036c10208e1fc Yan Zheng          2008-10-30  6633  	if (start >= extent_end) {
9036c10208e1fc Yan Zheng          2008-10-30  6634  		path->slots[0]++;
9036c10208e1fc Yan Zheng          2008-10-30  6635  		if (path->slots[0] >= btrfs_header_nritems(leaf)) {
9036c10208e1fc Yan Zheng          2008-10-30  6636  			ret = btrfs_next_leaf(root, path);
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6637  			if (ret < 0)
9036c10208e1fc Yan Zheng          2008-10-30  6638  				goto out;
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6639  			else if (ret > 0)
b888db2bd7b67f Chris Mason        2007-08-27  6640  				goto not_found;
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6641  
9036c10208e1fc Yan Zheng          2008-10-30  6642  			leaf = path->nodes[0];
a52d9a8033c454 Chris Mason        2007-08-27  6643  		}
9036c10208e1fc Yan Zheng          2008-10-30  6644  		btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
9036c10208e1fc Yan Zheng          2008-10-30  6645  		if (found_key.objectid != objectid ||
9036c10208e1fc Yan Zheng          2008-10-30  6646  		    found_key.type != BTRFS_EXTENT_DATA_KEY)
9036c10208e1fc Yan Zheng          2008-10-30  6647  			goto not_found;
9036c10208e1fc Yan Zheng          2008-10-30  6648  		if (start + len <= found_key.offset)
9036c10208e1fc Yan Zheng          2008-10-30  6649  			goto not_found;
e2eca69dc6c09d Wang Shilong       2014-07-17  6650  		if (start > found_key.offset)
e2eca69dc6c09d Wang Shilong       2014-07-17  6651  			goto next;
02a033df7a5ebf Nikolay Borisov    2018-12-17  6652  
02a033df7a5ebf Nikolay Borisov    2018-12-17  6653  		/* New extent overlaps with existing one */
9036c10208e1fc Yan Zheng          2008-10-30  6654  		em->start = start;
70c8a91ce21b83 Josef Bacik        2012-10-11  6655  		em->orig_start = start;
9036c10208e1fc Yan Zheng          2008-10-30  6656  		em->len = found_key.offset - start;
02a033df7a5ebf Nikolay Borisov    2018-12-17  6657  		em->block_start = EXTENT_MAP_HOLE;
02a033df7a5ebf Nikolay Borisov    2018-12-17  6658  		goto insert;
a52d9a8033c454 Chris Mason        2007-08-27  6659  	}
9036c10208e1fc Yan Zheng          2008-10-30  6660  
39b07b5d7072f8 Omar Sandoval      2019-12-02  6661  	btrfs_extent_item_to_extent_map(inode, path, item, !page, em);
7ffbb598a059b7 Filipe Manana      2014-06-09  6662  
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6663  	if (extent_type == BTRFS_FILE_EXTENT_REG ||
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6664  	    extent_type == BTRFS_FILE_EXTENT_PREALLOC) {
a52d9a8033c454 Chris Mason        2007-08-27  6665  		goto insert;
694c12ed9dcb07 Nikolay Borisov    2018-12-17  6666  	} else if (extent_type == BTRFS_FILE_EXTENT_INLINE) {
5f39d397dfbe14 Chris Mason        2007-10-15  6667  		unsigned long ptr;
a52d9a8033c454 Chris Mason        2007-08-27  6668  		char *map;
3326d1b07c0cb6 Chris Mason        2007-10-15  6669  		size_t size;
3326d1b07c0cb6 Chris Mason        2007-10-15  6670  		size_t extent_offset;
3326d1b07c0cb6 Chris Mason        2007-10-15  6671  		size_t copy_size;
a52d9a8033c454 Chris Mason        2007-08-27  6672  
39b07b5d7072f8 Omar Sandoval      2019-12-02  6673  		if (!page)
689f9346612d96 Yan                2007-10-29  6674  			goto out;
5f39d397dfbe14 Chris Mason        2007-10-15  6675  
e41ca5897489b1 Qu Wenruo          2018-06-06  6676  		size = btrfs_file_extent_ram_bytes(leaf, item);
9036c10208e1fc Yan Zheng          2008-10-30  6677  		extent_offset = page_offset(page) + pg_offset - extent_start;
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01  6678  		copy_size = min_t(u64, PAGE_SIZE - pg_offset,
3326d1b07c0cb6 Chris Mason        2007-10-15  6679  				  size - extent_offset);
3326d1b07c0cb6 Chris Mason        2007-10-15  6680  		em->start = extent_start + extent_offset;
0b246afa62b0cf Jeff Mahoney       2016-06-22  6681  		em->len = ALIGN(copy_size, fs_info->sectorsize);
b493968096944a Josef Bacik        2012-12-03  6682  		em->orig_block_len = em->len;
70c8a91ce21b83 Josef Bacik        2012-10-11  6683  		em->orig_start = em->start;
689f9346612d96 Yan                2007-10-29  6684  		ptr = btrfs_file_extent_inline_start(item) + extent_offset;
e49aabd973fd0b Liu Bo             2018-08-25  6685  
e49aabd973fd0b Liu Bo             2018-08-25  6686  		btrfs_set_path_blocking(path);
bf46f52db96795 Edmund Nadolski    2017-11-20  6687  		if (!PageUptodate(page)) {
261507a02ccba9 Li Zefan           2010-12-17  6688  			if (btrfs_file_extent_compression(leaf, item) !=
261507a02ccba9 Li Zefan           2010-12-17  6689  			    BTRFS_COMPRESS_NONE) {
e40da0e58a2089 Byongho Lee        2015-05-19  6690  				ret = uncompress_inline(path, page, pg_offset,
c8b978188c9a0f Chris Mason        2008-10-29  6691  							extent_offset, item);
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6692  				if (ret)
166ae5a418756d Zach Brown         2014-05-09  6693  					goto out;
c8b978188c9a0f Chris Mason        2008-10-29  6694  			} else {
c8b978188c9a0f Chris Mason        2008-10-29  6695  				map = kmap(page);
70dec8079d7869 Chris Mason        2008-01-29  6696  				read_extent_buffer(leaf, map + pg_offset, ptr,
179e29e488cc74 Chris Mason        2007-11-01  6697  						   copy_size);
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01  6698  				if (pg_offset + copy_size < PAGE_SIZE) {
93c82d575055f1 Chris Mason        2009-09-11  6699  					memset(map + pg_offset + copy_size, 0,
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01  6700  					       PAGE_SIZE - pg_offset -
93c82d575055f1 Chris Mason        2009-09-11  6701  					       copy_size);
93c82d575055f1 Chris Mason        2009-09-11  6702  				}
c8b978188c9a0f Chris Mason        2008-10-29  6703  				kunmap(page);
c8b978188c9a0f Chris Mason        2008-10-29  6704  			}
50b78c24d594e6 Chris Mason        2007-09-20  6705  			flush_dcache_page(page);
179e29e488cc74 Chris Mason        2007-11-01  6706  		}
d1310b2e0cd98e Chris Mason        2008-01-24  6707  		set_extent_uptodate(io_tree, em->start,
507903b81840a7 Arne Jansen        2011-04-06  6708  				    extent_map_end(em) - 1, NULL, GFP_NOFS);
a52d9a8033c454 Chris Mason        2007-08-27  6709  		goto insert;
a52d9a8033c454 Chris Mason        2007-08-27  6710  	}
a52d9a8033c454 Chris Mason        2007-08-27  6711  not_found:
a52d9a8033c454 Chris Mason        2007-08-27  6712  	em->start = start;
70c8a91ce21b83 Josef Bacik        2012-10-11  6713  	em->orig_start = start;
d1310b2e0cd98e Chris Mason        2008-01-24  6714  	em->len = len;
5f39d397dfbe14 Chris Mason        2007-10-15  6715  	em->block_start = EXTENT_MAP_HOLE;
a52d9a8033c454 Chris Mason        2007-08-27  6716  insert:
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6717  	ret = 0;
b3b4aa74b58bde David Sterba       2011-04-21  6718  	btrfs_release_path(path);
d1310b2e0cd98e Chris Mason        2008-01-24  6719  	if (em->start > start || extent_map_end(em) <= start) {
0b246afa62b0cf Jeff Mahoney       2016-06-22  6720  		btrfs_err(fs_info,
5d163e0e68ce74 Jeff Mahoney       2016-09-20  6721  			  "bad extent! em: [%llu %llu] passed [%llu %llu]",
c1c9ff7c94e83f Geert Uytterhoeven 2013-08-20  6722  			  em->start, em->len, start, len);
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6723  		ret = -EIO;
a52d9a8033c454 Chris Mason        2007-08-27  6724  		goto out;
a52d9a8033c454 Chris Mason        2007-08-27  6725  	}
d1310b2e0cd98e Chris Mason        2008-01-24  6726  
890871be854b5f Chris Mason        2009-09-02  6727  	write_lock(&em_tree->lock);
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6728  	ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len);
890871be854b5f Chris Mason        2009-09-02  6729  	write_unlock(&em_tree->lock);
a52d9a8033c454 Chris Mason        2007-08-27  6730  out:
c64142807f5a4d Liu Bo             2018-08-23  6731  	btrfs_free_path(path);
1abe9b8a138c99 liubo              2011-03-24  6732  
fc4f21b1d8d023 Nikolay Borisov    2017-02-20  6733  	trace_btrfs_get_extent(root, inode, em);
1abe9b8a138c99 liubo              2011-03-24  6734  
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6735  	if (ret) {
a52d9a8033c454 Chris Mason        2007-08-27  6736  		free_extent_map(em);
82b9610cdfabb8 Nikolay Borisov    2020-08-03  6737  		return ERR_PTR(ret);
a52d9a8033c454 Chris Mason        2007-08-27  6738  	}
a52d9a8033c454 Chris Mason        2007-08-27  6739  	return em;
a52d9a8033c454 Chris Mason        2007-08-27  6740  }
a52d9a8033c454 Chris Mason        2007-08-27  6741  

:::::: The code at line 6619 was first introduced by commit
:::::: 881a3a11c2b858fe9b69ef79ac5ee9978a266dc9 btrfs: fix return value mixup in btrfs_get_extent

:::::: TO: Pavel Machek <pavel@denx.de>
:::::: CC: David Sterba <dsterba@suse.com>

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [kdave-btrfs-devel:misc-next 48/48] fs/btrfs/inode.c:6619:4: error: 'err' undeclared
  2020-08-24 18:44 [kdave-btrfs-devel:misc-next 48/48] fs/btrfs/inode.c:6619:4: error: 'err' undeclared kernel test robot
@ 2020-08-24 19:59 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2020-08-24 19:59 UTC (permalink / raw)
  To: kbuild-all

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

On Tue, Aug 25, 2020 at 02:44:13AM +0800, kernel test robot wrote:
> tree:   https://github.com/kdave/btrfs-devel.git misc-next
> head:   82b9610cdfabb8ac550846d0342c2d2f6ccd08e5
> commit: 82b9610cdfabb8ac550846d0342c2d2f6ccd08e5 [48/48] btrfs: remove err variable from btrfs_get_extent
> config: powerpc-allyesconfig (attached as .config)
> compiler: powerpc64-linux-gcc (GCC) 9.3.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 checkout 82b9610cdfabb8ac550846d0342c2d2f6ccd08e5
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    fs/btrfs/inode.c: In function 'btrfs_get_extent':
> >> fs/btrfs/inode.c:6619:4: error: 'err' undeclared (first use in this function)
>     6619 |    err = -EUCLEAN;
>          |    ^~~
>    fs/btrfs/inode.c:6619:4: note: each undeclared identifier is reported only once for each function it appears in

Fixed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-24 19:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 18:44 [kdave-btrfs-devel:misc-next 48/48] fs/btrfs/inode.c:6619:4: error: 'err' undeclared kernel test robot
2020-08-24 19:59 ` David Sterba

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.