All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] bcache: 2nd wave patch for Linux v5.7-rc1
@ 2020-03-25  1:30 Coly Li
  2020-03-25  1:30 ` [PATCH 1/1] bcache: remove dupplicated declaration from btree.h Coly Li
  0 siblings, 1 reply; 5+ messages in thread
From: Coly Li @ 2020-03-25  1:30 UTC (permalink / raw)
  To: axboe; +Cc: linux-bcache, linux-block, Coly Li

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(-)

-- 
2.25.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] bcache: remove dupplicated declaration from btree.h
  2020-03-25  1:30 [PATCH 0/1] bcache: 2nd wave patch for Linux v5.7-rc1 Coly Li
@ 2020-03-25  1:30 ` Coly Li
  2020-03-25  1:57   ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Coly Li @ 2020-03-25  1:30 UTC (permalink / raw)
  To: axboe; +Cc: linux-bcache, linux-block, Coly Li, kbuild test robot

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 <lkp@intel.com> 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")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Coly Li <colyli@suse.de>
---
 drivers/md/bcache/btree.h | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/md/bcache/btree.h b/drivers/md/bcache/btree.h
index 7c884f278da8..257969980c49 100644
--- a/drivers/md/bcache/btree.h
+++ b/drivers/md/bcache/btree.h
@@ -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);
 
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] bcache: remove dupplicated declaration from btree.h
  2020-03-25  1:30 ` [PATCH 1/1] bcache: remove dupplicated declaration from btree.h Coly Li
@ 2020-03-25  1:57   ` Jens Axboe
  2020-03-25  2:32     ` Coly Li
  0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2020-03-25  1:57 UTC (permalink / raw)
  To: Coly Li; +Cc: linux-bcache, linux-block, kbuild test robot

On 3/24/20 7:30 PM, Coly Li wrote:
> 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 <lkp@intel.com> 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?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] bcache: remove dupplicated declaration from btree.h
  2020-03-25  1:57   ` Jens Axboe
@ 2020-03-25  2:32     ` Coly Li
  2020-03-25  2:42       ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Coly Li @ 2020-03-25  2:32 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-bcache, linux-block, kbuild test robot

On 2020/3/25 9:57 上午, Jens Axboe wrote:
> On 3/24/20 7:30 PM, Coly Li wrote:
>> 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 <lkp@intel.com> 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.
-- 

Coly Li

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] bcache: remove dupplicated declaration from btree.h
  2020-03-25  2:32     ` Coly Li
@ 2020-03-25  2:42       ` Jens Axboe
  0 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2020-03-25  2:42 UTC (permalink / raw)
  To: Coly Li; +Cc: linux-bcache, linux-block, kbuild test robot

On 3/24/20 8:32 PM, Coly Li wrote:
> On 2020/3/25 9:57 上午, Jens Axboe wrote:
>> On 3/24/20 7:30 PM, Coly Li wrote:
>>> 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 <lkp@intel.com> 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?

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

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-25  2:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25  1:30 [PATCH 0/1] bcache: 2nd wave patch for Linux v5.7-rc1 Coly Li
2020-03-25  1:30 ` [PATCH 1/1] bcache: remove dupplicated declaration from btree.h Coly Li
2020-03-25  1:57   ` Jens Axboe
2020-03-25  2:32     ` Coly Li
2020-03-25  2:42       ` Jens Axboe

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.