[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171011114826.kvzfweerdavsa6tf@linux.intel.com>
Date: Wed, 11 Oct 2017 14:48:26 +0300
From: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
To: Jérémy Lefaure <jeremy.lefaure@....epita.fr>
Cc: Peter Huewe <peterhuewe@....de>,
Jason Gunthorpe <jgunthorpe@...idianresearch.com>,
linux-integrity@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 13/18] tpm: use ARRAY_SIZE
On Tue, Oct 10, 2017 at 04:30:11PM -0400, Jérémy Lefaure wrote:
> On Wed, 4 Oct 2017 15:14:49 +0300
> Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com> wrote:
>
> > On Sun, Oct 01, 2017 at 03:30:51PM -0400, Jérémy Lefaure wrote:
> > > Using the ARRAY_SIZE macro improves the readability of the code.
> > >
> > > Found with Coccinelle with the following semantic patch:
> > > @r depends on (org || report)@
> > > type T;
> > > T[] E;
> > > position p;
> > > @@
> > > (
> > > (sizeof(E)@p /sizeof(*E))
> > > |
> > > (sizeof(E)@p /sizeof(E[...]))
> > > |
> > > (sizeof(E)@p /sizeof(T))
> > > )
> > >
> > > Signed-off-by: Jérémy Lefaure <jeremy.lefaure@....epita.fr>
> >
> > Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
> >
> Hi Jarkko,
> This patch is an individual patch, it's not really part of a series
> (my fault, sorry).
>
> Could you apply this patch to your tree ?
>
> Thank you,
> Jérémy
It is already applied :-)
I'll take it as part of my next pull request. Thank you.
/JarkkO
Powered by blists - more mailing lists