From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julia Lawall Date: Wed, 30 Jul 2014 08:48:43 +0000 Subject: Re: [PATCH 6/9] gpiolib: devres: use correct structure type name in sizeof Message-Id: List-Id: References: <1406647011-8543-1-git-send-email-Julia.Lawall@lip6.fr> <1406647011-8543-7-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexandre Courbot Cc: Linus Walleij , kernel-janitors@vger.kernel.org, linux-ia64@vger.kernel.org, ceph-devel@vger.kernel.org, toralf.foerster@gmx.de, hmh@hmh.eng.br, "linux-gpio@vger.kernel.org" , Linux Kernel Mailing List On Wed, 30 Jul 2014, Alexandre Courbot wrote: > On Wed, Jul 30, 2014 at 12:16 AM, Julia Lawall wrote: > > From: Julia Lawall > > > > 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 > > 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