Skip to contentSkip to conversation

bcache: 2nd wave patch for Linux v5.7-rc1

PATCH In review Coly Li 2 participants 5 messages Mar 25, 2020

Subsystems (2)
lore
Share & tools
lore

Coly Li

author
#0 lore raw

cover bcache: 2nd wave patch for Linux v5.7-rc1

Hi Jens,

This patch fixes a compiling problem reported by the kernel test robot. Please take it for the Linux v5.7-rc1 patches.

Thanks.

Coly Li
---

Coly Li (1):
bcache: remove dupplicated declaration from btree.h

 drivers/md/bcache/btree.h | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.0
author
#1 lore raw

PATCH 1/1 bcache: remove dupplicated declaration from btree.h

Commit ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h") makes two duplicated declaration into btree.h,

	typedef int (btree_map_keys_fn)();
	int bch_btree_map_keys();

The kbuild test robot <[email protected]> detects and reports this problem and this patch fixes it by removing the duplicated ones.

Fixes ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h")
---
 drivers/md/bcache/btree.h | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/md/bcache/btree.h +3 -7
index 7c884f278da8..257969980c49 100644
@@ -282,13 +282,6 @@ void bch_initial_gc_finish(struct cache_set *c);
 void bch_moving_gc(struct cache_set *c);
 int bch_btree_check(struct cache_set *c);
 void bch_initial_mark_key(struct cache_set *c, int level, struct bkey *k);
-typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b,
-				struct bkey *k);
-int bch_btree_map_keys_recurse(struct btree *b, struct btree_op *op,
-			       struct bkey *from, btree_map_keys_fn *fn,
-			       int flags);
-int bch_btree_map_keys(struct btree_op *op, struct cache_set *c,
-		       struct bkey *from, btree_map_keys_fn *fn, int flags);
 
 static inline void wake_up_gc(struct cache_set *c)
 {
@@ -402,6 +395,9 @@ typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b,
 				struct bkey *k);
 int bch_btree_map_keys(struct btree_op *op, struct cache_set *c,
 		       struct bkey *from, btree_map_keys_fn *fn, int flags);
+int bch_btree_map_keys_recurse(struct btree *b, struct btree_op *op,
+			       struct bkey *from, btree_map_keys_fn *fn,
+			       int flags);
 
 typedef bool (keybuf_pred_fn)(struct keybuf *buf, struct bkey *k);
 
Signature · 1 line
2.25.0
maintainer
#2 lore raw

Re: [PATCH 1/1] bcache: remove dupplicated declaration from btree.h

Quoted 9 lines · Coly Li

Commit ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h") makes two duplicated declaration into btree.h,

	typedef int (btree_map_keys_fn)();
	int bch_btree_map_keys();

The kbuild test robot <[email protected]> detects and reports this problem and this patch fixes it by removing the duplicated ones.

Fixes ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h")

Applied, but I fixed up the commit sha, not sure where yours is from?

Signature · 1 line
Jens Axboe
author
#3 lore raw

Re: [PATCH 1/1] bcache: remove dupplicated declaration from btree.h

Quoted 6 lines · Jens Axboe
Quoted 5 lines · Coly Li

Commit ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h") makes two duplicated declaration into btree.h,

	typedef int (btree_map_keys_fn)();
	int bch_btree_map_keys();
Quoted 7 lines
Quoted 4 lines

The kbuild test robot <[email protected]> detects and reports this problem and this patch fixes it by removing the duplicated ones.

Fixes ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h")

Applied, but I fixed up the commit sha, not sure where yours is from?

I should use the sha from your tree, not mine. I just realize with your SOB the sha number should change. Sorry for the inconvenience, and I will notice such condition next time.

BTW, you still find such issue by your own eyes, without any extra tool?

Thanks.

Signature · 1 line
Coly Li
maintainer
#4 lore raw

Re: [PATCH 1/1] bcache: remove dupplicated declaration from btree.h

Quoted 12 lines · Coly Li
Quoted 11 lines · Jens Axboe
Quoted 9 lines · Coly Li

Commit ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h") makes two duplicated declaration into btree.h,

	typedef int (btree_map_keys_fn)();
	int bch_btree_map_keys();

The kbuild test robot <[email protected]> detects and reports this problem and this patch fixes it by removing the duplicated ones.

Fixes ab544165dc2d ("bcache: move macro btree() and btree_root() into btree.h")
Quoted 8 lines
Quoted 2 lines

Applied, but I fixed up the commit sha, not sure where yours is from?

I should use the sha from your tree, not mine. I just realize with your SOB the sha number should change. Sorry for the inconvenience, and I will notice such condition next time.

BTW, you still find such issue by your own eyes, without any extra tool?

Manual inspection, to try and avoid cases where the sha is either too short, or just plain wrong.

Signature · 1 line
Jens Axboe