Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbdLZUOK (ORCPT ); Tue, 26 Dec 2017 15:14:10 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:33739 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbdLZUOI (ORCPT ); Tue, 26 Dec 2017 15:14:08 -0500 X-Google-Smtp-Source: ACJfBouEAb0e6v6AvtI+/QX5nGCksw/ycxLb1fGlONya9+iWWtEgcmJMVdyitirud5bUumI31KsPlGGswPCkJRIiMTs= MIME-Version: 1.0 In-Reply-To: <20171226194939.GB10937@himanshu-Vostro-3559> References: <20171226194939.GB10937@himanshu-Vostro-3559> From: Fabio Estevam Date: Tue, 26 Dec 2017 18:14:07 -0200 Message-ID: Subject: Re: [Cocci] [PATCH] Coccinelle: kzalloc-simple: Add all zero allocating functions To: Himanshu Jha Cc: Julia Lawall , 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 Content-Length: 929 Lines: 21 On Tue, Dec 26, 2017 at 5:49 PM, Himanshu Jha wrote: > diff --git a/scripts/coccinelle/api/alloc/kzalloc-simple.cocci b/scripts/coccinelle/api/alloc/kzalloc-simple.cocci > index 52c55e4..f94888d 100644 > --- a/scripts/coccinelle/api/alloc/kzalloc-simple.cocci > +++ b/scripts/coccinelle/api/alloc/kzalloc-simple.cocci > @@ -1,5 +1,5 @@ > /// > -/// Use kzalloc rather than kmalloc followed by memset with 0 > +/// Use zeroing allocator rather than allocator followed by memset with 0 > /// > /// This considers some simple cases that are common and easy to validate > /// Note in particular that there are no ...s in the rule, so all of the > @@ -8,6 +8,7 @@ > // Confidence: High > // Copyright: (C) 2009-2010 Julia Lawall, Nicolas Palix, DIKU. GPLv2. > // Copyright: (C) 2009-2010 Gilles Muller, INRIA/LiP6. GPLv2. > +// Cpoyright: (C) 2017 Himanshu Jha GPLv2. Typo here in "Copyright"