Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3987046pxk; Tue, 22 Sep 2020 07:42:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0WsR8VljtoMZKjGQUY5Xfc7KQrKu+6qeIF3jAZZJ44eOV/Ewj9qkWjjr81yN57zxylLrg X-Received: by 2002:a17:907:408d:: with SMTP id nt21mr5198261ejb.355.1600785776870; Tue, 22 Sep 2020 07:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600785776; cv=none; d=google.com; s=arc-20160816; b=naHB8fMDkBeoLXBxFXRG6tGX8LIGR3GpqPsSBhl4CVtQIOUwJVIEu54/4nv1BWIWnw 2o1b7zDO1ZkbV75foowhoE54BFyvt6azPq5KgqkqysK7Jv/aNW/iDoV3cNqJ4UBD1ar/ VA8v7pOhQlsBrjEJFkvZNcnnsN1xY09qifxL7rk1nb7WjdvXKqEnHw1NtPSEC9E/ARlD wA8/7wxm2J9YngkXY2d5zXHJad2tTy4+gYK8lQxM5puQzoPVWhSqR8zir1d5wN2Maia+ v4TtQ6gPNqfAk0M2C4q5g8oyeLsDIzUHutWNULHILVwJo0SOKxXIZDO2LRe+5xIa8zOd p+2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=o7K9+6qO8xdP8vMML5VOGSgjWJOKO2zi0weIUGCWbRE=; b=XBFgXBmQ0UgLTarAkZV5cGdKCKW6KYZbiYB/3yPJ5HOWf0z8lIlNF3QB2cuAYGNhnD MkwncV3gouN38HIvIdmovOuFZRWu3y3EJoNoDIOudjpRAALsbD7llWZcU8qxchHZt1Ty xojyweHzEkUzTG+zpinFYgWBH6MRXr1z74eEf0DnakN+7yw0GFzI5U3JvdWBb3DBZIhM WdBAuLD4WTMXa22R8DNCB2lz/gR/oZjpV1ZolVb0Wr0SJSnjfyOcWfbikY1pZdhF16vk UYbXAWP1Nlc1W87Wcx4GoL79Lc3b2oY0WncC86qvPZKeFmAkwuU+ytF5F0swZEaJU5Wf eL6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co12si11711430edb.104.2020.09.22.07.42.32; Tue, 22 Sep 2020 07:42:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbgIVOlH (ORCPT + 99 others); Tue, 22 Sep 2020 10:41:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:48658 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbgIVOlG (ORCPT ); Tue, 22 Sep 2020 10:41:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E5063ACC2; Tue, 22 Sep 2020 14:41:41 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id AD317DA6E9; Tue, 22 Sep 2020 16:39:49 +0200 (CEST) Date: Tue, 22 Sep 2020 16:39:49 +0200 From: David Sterba To: Filipe Manana Cc: Julia Lawall , Filipe Manana , Chris Mason , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel Mailing List , kbuild-all@lists.01.org Subject: Re: [PATCH] btrfs: fix memdup.cocci warnings Message-ID: <20200922143949.GB6756@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Filipe Manana , Julia Lawall , Filipe Manana , Chris Mason , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel Mailing List , kbuild-all@lists.01.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > > Generated by: scripts/coccinelle/api/memdup.cocci > > > > Fixes: 28314eb24e6c ("btrfs: send, recompute reference path after orphanization of a directory") > > Signed-off-by: kernel test robot > > Signed-off-by: Julia Lawall > > Since this is not in Linus' tree yet, it can be folded in the original patch. > David, can you do that when you pick it? Yes, I'll do that. > Btw, isn't the Fixes tag meant only for bug fixes? This is a pure > cleanup afaics. Agreed.