Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755251AbeAMRCN (ORCPT + 1 other); Sat, 13 Jan 2018 12:02:13 -0500 Received: from mail-oi0-f66.google.com ([209.85.218.66]:46280 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755153AbeAMRCL (ORCPT ); Sat, 13 Jan 2018 12:02:11 -0500 X-Google-Smtp-Source: ACJfBovMjJOIGVwshGrnmaa7+vsmL952ZoQMnh5zX6E5GSD+jrhoBPrQN+LAMMT8dzEp6OSizEu9K60PYODrfGmzy6w= MIME-Version: 1.0 In-Reply-To: <1515859050-31764-1-git-send-email-himanshujha199640@gmail.com> References: <1515859050-31764-1-git-send-email-himanshujha199640@gmail.com> From: Fabio Estevam Date: Sat, 13 Jan 2018 15:02:10 -0200 Message-ID: Subject: Re: [Cocci] [PATCH] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple To: Himanshu Jha Cc: Masahiro Yamada , michal.lkml@markovi.net, nicolas.palix@imag.fr, linux-kernel , cocci@systeme.lip6.fr Content-Type: text/plain; charset="UTF-8" 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 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. Then the patch would look like this: scripts/coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc.cocci} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc.cocci} (100%) diff --git a/scripts/coccinelle/api/alloc/kzalloc-simple.cocci b/scripts/coccinelle/api/alloc/zalloc.cocci similarity index 100% rename from scripts/coccinelle/api/alloc/kzalloc-simple.cocci rename to scripts/coccinelle/api/alloc/zalloc.cocci