Re: [PATCH 37/38] btrfs: Make get_extent_t take btrfs_inode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nikolay,

[auto build test WARNING on next-20170217]
[cannot apply to btrfs/next v4.9-rc8 v4.9-rc7 v4.9-rc6 v4.10-rc8]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Nikolay-Borisov/More-btrfs_inode-cleanups/20170217-233314
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   fs/btrfs/tests/inode-tests.c: In function 'test_btrfs_get_extent':
>> fs/btrfs/tests/inode-tests.c:281:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, 0, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:296:2: warning: passing argument 1 of 'btrfs_drop_extent_cache' from incompatible pointer type
     btrfs_drop_extent_cache(inode, 0, (u64)-1, 0);
     ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3222:6: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end,
         ^
   fs/btrfs/tests/inode-tests.c:305:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, 0, (u64)-1, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:326:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:353:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:375:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:402:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:431:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:453:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:487:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:516:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:546:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:579:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:614:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^
   In file included from fs/btrfs/tests/inode-tests.c:21:0:
   fs/btrfs/tests/../ctree.h:3169:20: note: expected 'struct btrfs_inode *' but argument is of type 'struct inode *'
    struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct page *page,
                       ^
   fs/btrfs/tests/inode-tests.c:648:7: warning: passing argument 1 of 'btrfs_get_extent' from incompatible pointer type
     em = btrfs_get_extent(inode, NULL, 0, offset, sectorsize, 0);
          ^

vim +/btrfs_get_extent +281 fs/btrfs/tests/inode-tests.c

aaedb55b Josef Bacik        2013-10-11  265  	if (!root->node) {
aaedb55b Josef Bacik        2013-10-11  266  		test_msg("Couldn't allocate dummy buffer\n");
aaedb55b Josef Bacik        2013-10-11  267  		goto out;
aaedb55b Josef Bacik        2013-10-11  268  	}
aaedb55b Josef Bacik        2013-10-11  269  
aaedb55b Josef Bacik        2013-10-11  270  	/*
aaedb55b Josef Bacik        2013-10-11  271  	 * We will just free a dummy node if it's ref count is 2 so we need an
01327610 Nicholas D Steeves 2016-05-19  272  	 * extra ref so our searches don't accidentally release our page.
aaedb55b Josef Bacik        2013-10-11  273  	 */
aaedb55b Josef Bacik        2013-10-11  274  	extent_buffer_get(root->node);
aaedb55b Josef Bacik        2013-10-11  275  	btrfs_set_header_nritems(root->node, 0);
aaedb55b Josef Bacik        2013-10-11  276  	btrfs_set_header_level(root->node, 0);
aaedb55b Josef Bacik        2013-10-11  277  	ret = -EINVAL;
aaedb55b Josef Bacik        2013-10-11  278  
aaedb55b Josef Bacik        2013-10-11  279  	/* First with no extents */
aaedb55b Josef Bacik        2013-10-11  280  	BTRFS_I(inode)->root = root;
b9ef22de Feifei Xu          2016-06-01 @281  	em = btrfs_get_extent(inode, NULL, 0, 0, sectorsize, 0);
aaedb55b Josef Bacik        2013-10-11  282  	if (IS_ERR(em)) {
aaedb55b Josef Bacik        2013-10-11  283  		em = NULL;
aaedb55b Josef Bacik        2013-10-11  284  		test_msg("Got an error when we shouldn't have\n");
aaedb55b Josef Bacik        2013-10-11  285  		goto out;
aaedb55b Josef Bacik        2013-10-11  286  	}
aaedb55b Josef Bacik        2013-10-11  287  	if (em->block_start != EXTENT_MAP_HOLE) {
aaedb55b Josef Bacik        2013-10-11  288  		test_msg("Expected a hole, got %llu\n", em->block_start);
aaedb55b Josef Bacik        2013-10-11  289  		goto out;

:::::: The code at line 281 was first introduced by commit
:::::: b9ef22dedde08ab1b4ccd5f53344984c4dcb89f4 Btrfs: self-tests: Support non-4k page size

:::::: TO: Feifei Xu <xufeifei@xxxxxxxxxxxxxxxxxx>
:::::: CC: David Sterba <dsterba@xxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux