[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1407301048170.2389@hadrien>
Date: Wed, 30 Jul 2014 10:48:43 +0200 (CEST)
From: Julia Lawall <julia.lawall@...6.fr>
To: Alexandre Courbot <gnurou@...il.com>
cc: Linus Walleij <linus.walleij@...aro.org>,
kernel-janitors@...r.kernel.org, linux-ia64@...r.kernel.org,
ceph-devel@...r.kernel.org, toralf.foerster@....de, hmh@....eng.br,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 6/9] gpiolib: devres: use correct structure type name in
sizeof
On Wed, 30 Jul 2014, Alexandre Courbot wrote:
> On Wed, Jul 30, 2014 at 12:16 AM, Julia Lawall <Julia.Lawall@...6.fr> wrote:
> > From: Julia Lawall <Julia.Lawall@...6.fr>
> >
> > Correct typo in the name of the type given to sizeof. Because it is the
> > size of a pointer that is wanted, the typo has no impact on compilation or
> > execution.
> >
> > This problem was found using Coccinelle (http://coccinelle.lip6.fr/). The
> > semantic patch used can be found in message 0 of this patch series.
>
> Acked-by: Alexandre Courbot <acourbot@...dia.com>
>
> Interestingly the compiler never complains despite gpiod_desc not
> being a declared type...
The compiler doesn't care. A pointer is a pointer, regardless of the
type.
julia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists