linux-next: build failure after merge of the tip tree
Subsystems (2)
Hi all,
After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
fs/btrfs/ctree.c: In function '__tree_mod_log_insert':fs/btrfs/ctree.c:388:2: error: implicit declaration of function 'lockdep_assert_held_exclusive'; did you mean 'lockdep_assert_held_once'? [-Werror=implicit-function-declaration]
lockdep_assert_held_exclusive(&fs_info->tree_mod_log_lock);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lockdep_assert_held_once
Caused by commit
9ffbe8ac05db ("locking/lockdep: Rename lockdep_assert_held_exclusive() -> lockdep_assert_held_write()")
interacting with commits
84cd7723de7c ("btrfs: assert tree mod log lock in __tree_mod_log_insert") 283d2e443505 ("btrfs: assert extent map tree lock in add_extent_mapping")
from the btrfs-kdave tree.
I have applied the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Tue, 2 Jul 2019 15:29:27 +1000
Subject: [PATCH] locking/lockdep: fix up for "Rename
lockdep_assert_held_exclusive() -> lockdep_assert_held_write()"
--- fs/btrfs/ctree.c | 2 +- fs/btrfs/extent_map.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/ctree.c +1 -1
@@ -385,7 +385,7 @@ __tree_mod_log_insert(struct btrfs_fs_info *fs_info, struct tree_mod_elem *tm)struct rb_node *parent =NULL ;struct tree_mod_elem *cur; -lockdep_assert_held_exclusive (&fs_info->tree_mod_log_lock); +lockdep_assert_held_write (&fs_info->tree_mod_log_lock); tm->seq =btrfs_inc_tree_mod_seq (fs_info);
fs/btrfs/extent_map.c +1 -1
@@ -384,7 +384,7 @@ int add_extent_mapping(struct extent_map_tree *tree, {int ret =0 ; -lockdep_assert_held_exclusive (&tree->lock); +lockdep_assert_held_write (&tree->lock); ret =tree_insert (&tree->map, em);if (ret)
Signature · 5 lines
2.20.1 -- Cheers, Stephen Rothwell
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tip tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
fs/btrfs/ctree.c: In function '__tree_mod_log_insert':fs/btrfs/ctree.c:388:2: error: implicit declaration of function 'lockdep_assert_held_exclusive'; did you mean 'lockdep_assert_held_once'? [-Werror=implicit-function-declaration]
lockdep_assert_held_exclusive(&fs_info->tree_mod_log_lock);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lockdep_assert_held_once
Quoted 8 lines
Caused by commit
9ffbe8ac05db("locking/lockdep: Renamelockdep_assert_held_exclusive()->lockdep_assert_held_write()")interacting with commits
84cd7723de7c("btrfs: assert tree mod log lock in__tree_mod_log_insert")283d2e443505("btrfs: assert extent map tree lock inadd_extent_mapping")
I can move the patches out of the for-5.3 branch and send them separately after the rename gets merged, they're merely adding the assertion and otherwise do not affect the rest of the code.
Fixing that in another way would probably need more synchronization between the branches but I don't think it's necessary in this case. The next for-next snapshot branch will fix the compilation issue.
Hi David,
Quoted 8 lines · On Tue, 2 Jul 2019 12:28:32 +0200 David Sterba <[email protected]> wrote:
I can move the patches out of the for-5.3 branch and send them separately after the rename gets merged, they're merely adding the assertion and otherwise do not affect the rest of the code.
Fixing that in another way would probably need more synchronization between the branches but I don't think it's necessary in this case. The next for-next snapshot branch will fix the compilation issue.
Its a simple enough conflict for Linus to fix up as long as someone tells him to expect it ...
Signature · 2 lines
Cheers, Stephen Rothwell
Hi David,
Quoted 22 lines · On Tue, 2 Jul 2019 12:28:32 +0200 David Sterba <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tip tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
fs/btrfs/ctree.c: In function '__tree_mod_log_insert':fs/btrfs/ctree.c:388:2: error: implicit declaration of function 'lockdep_assert_held_exclusive'; did you mean 'lockdep_assert_held_once'? [-Werror=implicit-function-declaration]
lockdep_assert_held_exclusive(&fs_info->tree_mod_log_lock);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lockdep_assert_held_onceQuoted 8 lines
Caused by commit
9ffbe8ac05db("locking/lockdep: Renamelockdep_assert_held_exclusive()->lockdep_assert_held_write()")interacting with commits
84cd7723de7c("btrfs: assert tree mod log lock in__tree_mod_log_insert")283d2e443505("btrfs: assert extent map tree lock inadd_extent_mapping")
Quoted 7 lines
I can move the patches out of the for-5.3 branch and send them separately after the rename gets merged, they're merely adding the assertion and otherwise do not affect the rest of the code.
Fixing that in another way would probably need more synchronization between the branches but I don't think it's necessary in this case. The next for-next snapshot branch will fix the compilation issue.
I see that you removed those commits. The conflict is no more.
Signature · 2 lines
Cheers, Stephen Rothwell