t...@de.ibm.com>, "Martin Schwidefsky" <schwidef...@de.ibm.com>,
> "Radim Krčmář" <rkrc...@redhat.com>,
> "LKML" <linux-kernel@vger.kernel.org>, kernel-janit...@vger.kernel.org
> Sent: Wednesday, August 24, 2016 2:10:13 PM
> Sub
ck"
> , "David Hildenbrand" ,
> "Heiko Carstens"
> , "Martin Schwidefsky" ,
> "Radim Krčmář" ,
> "LKML" , kernel-janit...@vger.kernel.org
> Sent: Wednesday, August 24, 2016 2:10:13 PM
> Subject: Re: Replacing specific
> Or kmalloc_array, since zeroing is not necessary. Might be an idea for
> a new Coccinelle script, like
>
> - kmalloc (N * sizeof T, GFP)
> + kmalloc_array(N, sizeof T, GFP)
I have picked your idea up. The corresponding script for the semantic
patch language became longer than your general
> Or kmalloc_array, since zeroing is not necessary. Might be an idea for
> a new Coccinelle script, like
>
> - kmalloc (N * sizeof T, GFP)
> + kmalloc_array(N, sizeof T, GFP)
I have picked your idea up. The corresponding script for the semantic
patch language became longer than your general
4 matches
Mail list logo