tree: https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git btrfs-readdir head: fcde4ff2122bcd230de62daec6d466631666d284 commit: fcde4ff2122bcd230de62daec6d466631666d284 [4/4] Btrfs: add a extent ref verify tool config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout fcde4ff2122bcd230de62daec6d466631666d284 # save the attached .config to linux build tree make.cross ARCH=xtensa All error/warnings (new ones prefixed by >>): fs//btrfs/ref-verify.c: In function 'build_ref_tree_for_root': >> fs//btrfs/ref-verify.c:583:2: error: implicit declaration of function 'btrfs_read_lock_root_node' [-Werror=implicit-function-declaration] eb = btrfs_read_lock_root_node(root); ^ >> fs//btrfs/ref-verify.c:583:5: warning: assignment makes pointer from integer without a cast eb = btrfs_read_lock_root_node(root); ^ cc1: some warnings being treated as errors vim +/btrfs_read_lock_root_node +583 fs//btrfs/ref-verify.c 571 572 static int build_ref_tree_for_root(struct btrfs_root *root) 573 { 574 struct btrfs_path *path; 575 struct extent_buffer *eb; 576 int level; 577 int ret = 0; 578 579 path = btrfs_alloc_path(); 580 if (!path) 581 return -ENOMEM; 582 > 583 eb = btrfs_read_lock_root_node(root); 584 btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK); 585 level = btrfs_header_level(eb); 586 path->nodes[level] = eb; 587 path->slots[level] = 0; 588 path->locks[level] = BTRFS_READ_LOCK_BLOCKING; 589 590 ret = add_tree_block(root, 0, eb->start, level); 591 if (ret) { 592 btrfs_free_path(path); 593 return ret; 594 } 595 596 while (1) { 597 ret = walk_down_tree(root, path, level); 598 if (ret) 599 break; 600 ret = walk_up_tree(root, path, &level); 601 if (ret < 0) 602 break; 603 if (ret > 0) { 604 ret = 0; 605 break; 606 } 607 } 608 if (ret) 609 btrfs_free_ref_cache(root->fs_info); 610 btrfs_free_path(path); 611 return ret; 612 } 613 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
