From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553AbeAMRyC (ORCPT + 1 other); Sat, 13 Jan 2018 12:54:02 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39987 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbeAMRyB (ORCPT ); Sat, 13 Jan 2018 12:54:01 -0500 X-Google-Smtp-Source: ACJfBotwU1XAWru9bao0/cul8kYIPHpTxnFOogYFbPJ3y04RhIe5YvJ9juMd8N9Pk7CzovkCtnrHgw== Date: Sat, 13 Jan 2018 23:23:53 +0530 From: Himanshu Jha To: Fabio Estevam Cc: Masahiro Yamada , michal.lkml@markovi.net, nicolas.palix@imag.fr, linux-kernel , cocci@systeme.lip6.fr Subject: Re: [Cocci] [PATCH] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple Message-ID: <20180113175353.GA3513@himanshu-Vostro-3559> References: <1515859050-31764-1-git-send-email-himanshujha199640@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sat, Jan 13, 2018 at 03:02:10PM -0200, Fabio Estevam wrote: > On Sat, Jan 13, 2018 at 1:57 PM, Himanshu Jha > wrote: > > Rename kzalloc-simple to zalloc-simple since now the rule is not > > specific to kzalloc function only, but also to many other zero memory > > allocating functions specified in the rule. > > > > Signed-off-by: Himanshu Jha > > --- > > scripts/coccinelle/api/alloc/kzalloc-simple.cocci | 448 ---------------------- > > scripts/coccinelle/api/alloc/zalloc.cocci | 448 ++++++++++++++++++++++ > > You could use 'git mv' and 'git format -1 -M', so that git detects the rename. Yes, I used 'git mv'. It doesn't matter when applying through 'git am', both will result the same AFAIK and only difference is that the patch files generated by 'git format-patch' are different. But that is not important I think. Masahiro if have any problem then please tell me, I can send again as stated by Fabio. -- Thanks Himanshu Jha