* [hch-block:blkdev.h-includes 2/17] fs/btrfs/ctree.c:577:1: error: type defaults to 'int' in declaration of 'ALLOW_ERROR_INJECTION'
@ 2021-09-06 14:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-06 14:17 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 7425 bytes --]
tree: git://git.infradead.org/users/hch/block.git blkdev.h-includes
head: 9a8385d2d0ea7e589b98c102f4a60576385ca6c7
commit: c0c6b37cfd9230649cf2a039b98d99aeecbffdfd [2/17] mm: don't include <linux/blk-cgroup.h> in <linux/backing-dev.h>
config: x86_64-randconfig-a004-20210906 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block blkdev.h-includes
git checkout c0c6b37cfd9230649cf2a039b98d99aeecbffdfd
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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/ctree.c:577:1: error: data definition has no type or storage class [-Werror]
577 | ALLOW_ERROR_INJECTION(btrfs_cow_block, ERRNO);
| ^~~~~~~~~~~~~~~~~~~~~
>> fs/btrfs/ctree.c:577:1: error: type defaults to 'int' in declaration of 'ALLOW_ERROR_INJECTION' [-Werror=implicit-int]
fs/btrfs/ctree.c:577:1: error: parameter names (without types) in function declaration [-Werror]
fs/btrfs/ctree.c:1922:1: error: data definition has no type or storage class [-Werror]
1922 | ALLOW_ERROR_INJECTION(btrfs_search_slot, ERRNO);
| ^~~~~~~~~~~~~~~~~~~~~
fs/btrfs/ctree.c:1922:1: error: type defaults to 'int' in declaration of 'ALLOW_ERROR_INJECTION' [-Werror=implicit-int]
fs/btrfs/ctree.c:1922:1: error: parameter names (without types) in function declaration [-Werror]
cc1: all warnings being treated as errors
--
fs/btrfs/compression.c: In function 'btrfs_submit_compressed_write':
>> fs/btrfs/compression.c:441:3: error: implicit declaration of function 'kthread_associate_blkcg'; did you mean 'bio_associate_blkg'? [-Werror=implicit-function-declaration]
441 | kthread_associate_blkcg(blkcg_css);
| ^~~~~~~~~~~~~~~~~~~~~~~
| bio_associate_blkg
cc1: all warnings being treated as errors
--
>> fs/f2fs/compress.c:562:33: error: expected ')' before 'uint'
562 | module_param(num_compress_pages, uint, 0444);
| ^~~~~
| )
>> fs/f2fs/compress.c:563:37: error: expected ')' before string constant
563 | MODULE_PARM_DESC(num_compress_pages,
| ^
| )
564 | "Number of intermediate compress pages to preallocate");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +577 fs/btrfs/ctree.c
5d4f98a28c7d33 Yan Zheng 2009-06-10 527
d352ac68148b69 Chris Mason 2008-09-29 528 /*
d352ac68148b69 Chris Mason 2008-09-29 529 * cows a single block, see __btrfs_cow_block for the real work.
0132761017e012 Nicholas D Steeves 2016-05-19 530 * This version of it has extra checks so that a block isn't COWed more than
d352ac68148b69 Chris Mason 2008-09-29 531 * once per transaction, as long as it hasn't been written yet
d352ac68148b69 Chris Mason 2008-09-29 532 */
d397712bcc6a75 Chris Mason 2009-01-05 533 noinline int btrfs_cow_block(struct btrfs_trans_handle *trans,
5f39d397dfbe14 Chris Mason 2007-10-15 534 struct btrfs_root *root, struct extent_buffer *buf,
5f39d397dfbe14 Chris Mason 2007-10-15 535 struct extent_buffer *parent, int parent_slot,
9631e4cc1a030a Josef Bacik 2020-08-20 536 struct extent_buffer **cow_ret,
9631e4cc1a030a Josef Bacik 2020-08-20 537 enum btrfs_lock_nesting nest)
6702ed490ca0bb Chris Mason 2007-08-07 538 {
0b246afa62b0cf Jeff Mahoney 2016-06-22 539 struct btrfs_fs_info *fs_info = root->fs_info;
6702ed490ca0bb Chris Mason 2007-08-07 540 u64 search_start;
f510cfecfc9875 Chris Mason 2007-10-15 541 int ret;
dc17ff8f11d129 Chris Mason 2008-01-08 542
83354f0772cd07 Josef Bacik 2018-11-30 543 if (test_bit(BTRFS_ROOT_DELETING, &root->state))
83354f0772cd07 Josef Bacik 2018-11-30 544 btrfs_err(fs_info,
83354f0772cd07 Josef Bacik 2018-11-30 545 "COW'ing blocks on a fs root that's being dropped");
83354f0772cd07 Josef Bacik 2018-11-30 546
0b246afa62b0cf Jeff Mahoney 2016-06-22 547 if (trans->transaction != fs_info->running_transaction)
31b1a2bd758f43 Julia Lawall 2012-11-03 548 WARN(1, KERN_CRIT "trans %llu running %llu\n",
c1c9ff7c94e83f Geert Uytterhoeven 2013-08-20 549 trans->transid,
0b246afa62b0cf Jeff Mahoney 2016-06-22 550 fs_info->running_transaction->transid);
31b1a2bd758f43 Julia Lawall 2012-11-03 551
0b246afa62b0cf Jeff Mahoney 2016-06-22 552 if (trans->transid != fs_info->generation)
31b1a2bd758f43 Julia Lawall 2012-11-03 553 WARN(1, KERN_CRIT "trans %llu running %llu\n",
0b246afa62b0cf Jeff Mahoney 2016-06-22 554 trans->transid, fs_info->generation);
dc17ff8f11d129 Chris Mason 2008-01-08 555
5d4f98a28c7d33 Yan Zheng 2009-06-10 556 if (!should_cow_block(trans, root, buf)) {
6702ed490ca0bb Chris Mason 2007-08-07 557 *cow_ret = buf;
6702ed490ca0bb Chris Mason 2007-08-07 558 return 0;
6702ed490ca0bb Chris Mason 2007-08-07 559 }
c487685d7c18a8 Chris Mason 2009-02-04 560
ee22184b53c823 Byongho Lee 2015-12-15 561 search_start = buf->start & ~((u64)SZ_1G - 1);
b4ce94de9b4d64 Chris Mason 2009-02-04 562
f616f5cd9da7fc Qu Wenruo 2019-01-23 563 /*
f616f5cd9da7fc Qu Wenruo 2019-01-23 564 * Before CoWing this block for later modification, check if it's
f616f5cd9da7fc Qu Wenruo 2019-01-23 565 * the subtree root and do the delayed subtree trace if needed.
f616f5cd9da7fc Qu Wenruo 2019-01-23 566 *
f616f5cd9da7fc Qu Wenruo 2019-01-23 567 * Also We don't care about the error, as it's handled internally.
f616f5cd9da7fc Qu Wenruo 2019-01-23 568 */
f616f5cd9da7fc Qu Wenruo 2019-01-23 569 btrfs_qgroup_trace_subtree_after_cow(trans, root, buf);
f510cfecfc9875 Chris Mason 2007-10-15 570 ret = __btrfs_cow_block(trans, root, buf, parent,
9631e4cc1a030a Josef Bacik 2020-08-20 571 parent_slot, cow_ret, search_start, 0, nest);
1abe9b8a138c99 liubo 2011-03-24 572
1abe9b8a138c99 liubo 2011-03-24 573 trace_btrfs_cow_block(root, buf, *cow_ret);
1abe9b8a138c99 liubo 2011-03-24 574
f510cfecfc9875 Chris Mason 2007-10-15 575 return ret;
6702ed490ca0bb Chris Mason 2007-08-07 576 }
f75e2b79b5ba9d Josef Bacik 2020-12-16 @577 ALLOW_ERROR_INJECTION(btrfs_cow_block, ERRNO);
6702ed490ca0bb Chris Mason 2007-08-07 578
:::::: The code at line 577 was first introduced by commit
:::::: f75e2b79b5ba9dd3e0899840a329c3da02dc8937 btrfs: allow error injection for btrfs_search_slot and btrfs_cow_block
:::::: TO: Josef Bacik <josef@toxicpanda.com>
:::::: 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: 27322 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-06 14:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-06 14:17 [hch-block:blkdev.h-includes 2/17] fs/btrfs/ctree.c:577:1: error: type defaults to 'int' in declaration of 'ALLOW_ERROR_INJECTION' 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.