Message ID | 1406647011-8543-7-git-send-email-Julia.Lawall@lip6.fr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Jul 30, 2014 at 12:16 AM, Julia Lawall <Julia.Lawall@lip6.fr> wrote: > From: Julia Lawall <Julia.Lawall@lip6.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@nvidia.com> Interestingly the compiler never complains despite gpiod_desc not being a declared type... Thanks! -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, 30 Jul 2014, Alexandre Courbot wrote: > On Wed, Jul 30, 2014 at 12:16 AM, Julia Lawall <Julia.Lawall@lip6.fr> wrote: > > From: Julia Lawall <Julia.Lawall@lip6.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@nvidia.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 ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Jul 29, 2014 at 5:16 PM, Julia Lawall <Julia.Lawall@lip6.fr> wrote: > From: Julia Lawall <Julia.Lawall@lip6.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. > > Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Patch applied with Alexandre's ACK. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c index 65978cf..4a63207 100644 --- a/drivers/gpio/devres.c +++ b/drivers/gpio/devres.c @@ -84,7 +84,7 @@ struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev, struct gpio_desc **dr; struct gpio_desc *desc; - dr = devres_alloc(devm_gpiod_release, sizeof(struct gpiod_desc *), + dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), GFP_KERNEL); if (!dr) return ERR_PTR(-ENOMEM);