Re: [PATCH] btrfs: fix memdup.cocci warnings

2020-09-22 Thread David Sterba
On Tue, Sep 22, 2020 at 03:05:59PM +0100, Filipe Manana wrote: > On Tue, Sep 22, 2020 at 11:29 AM Julia Lawall wrote: > > > > From: kernel test robot > > > > fs/btrfs/send.c:3854:8-15: WARNING opportunity for kmemdup > > > > Use kmemdup rather than duplicating its implementation > > > > Generate

Re: [PATCH] btrfs: fix memdup.cocci warnings

2020-09-22 Thread Filipe Manana
On Tue, Sep 22, 2020 at 11:29 AM Julia Lawall wrote: > > From: kernel test robot > > fs/btrfs/send.c:3854:8-15: WARNING opportunity for kmemdup > > Use kmemdup rather than duplicating its implementation > > Generated by: scripts/coccinelle/api/memdup.cocci > > Fixes: 28314eb24e6c ("btrfs: send,

Re: [PATCH] btrfs: fix memdup.cocci warnings

2020-09-22 Thread Josef Bacik
On 9/22/20 6:21 AM, Julia Lawall wrote: From: kernel test robot fs/btrfs/send.c:3854:8-15: WARNING opportunity for kmemdup Use kmemdup rather than duplicating its implementation Generated by: scripts/coccinelle/api/memdup.cocci Fixes: 28314eb24e6c ("btrfs: send, recompute reference path af

[PATCH] btrfs: fix memdup.cocci warnings

2020-09-22 Thread Julia Lawall
From: kernel test robot fs/btrfs/send.c:3854:8-15: WARNING opportunity for kmemdup Use kmemdup rather than duplicating its implementation Generated by: scripts/coccinelle/api/memdup.cocci Fixes: 28314eb24e6c ("btrfs: send, recompute reference path after orphanization of a directory") Signed-