Quentin LAMBERT

Articles de cet auteur

net: Remove casts of void *

Author: Joe Perches <joe@perches.com> Unnecessary casts of void * clutter the code. These are the remainder casts after several specific patches to remove netdev_priv and dev_priv. Done via coccinelle script: $ cat cast_void_pointer.cocci @@ type T; T *pt; void *pv; @@ – pt = (T *)pv; + pt = pv; Signed-off-by: Joe Perches Acked-by: Paul …

Lire la suite

spi: Convert uses of struct resource * to resource_size(ptr)

Author: Joe Perches <joe@perches.com> Done via coccinelle scripts like: @@ struct resource *ptr; @@ – ptr->end – ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by: Joe Perches Signed-off-by: Grant Likely — drivers/spi/spi-ath79.c | 2 +- drivers/spi/spi-omap2-mcspi.c | 10 +++++—– drivers/spi/spi-orion.c | 6 +++— drivers/spi/spi-ppc4xx.c | 2 +- drivers/spi/spi-tegra.c …

Lire la suite

treewide: Convert uses of struct resource to resource_size(ptr)

Author: Joe Perches <joe@perches.com> Several fixes as well where the +1 was missing. Done via coccinelle scripts like: @@ struct resource *ptr; @@ – ptr->end – ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina — arch/arm/common/scoop.c | 2 +- arch/arm/mach-at91/at91sam9261_devices.c | 2 +- …

Lire la suite

hwrng: nomadik – add missing clk_put

Author: Julia Lawall <julia@diku.dk> Jump to the end of the function for the clk_disable and clk_put rather than returning directly. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = clk_get@p1(…); … when != e1 = e2 when != clk_put(e1) …

Lire la suite

hwrng: omap – add missing clk_put

Author: Julia Lawall <julia@diku.dk> Convert a return to a jump to an existing label that calls clk_put. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = clk_get@p1(…); … when != e1 = e2 when != clk_put(e1) when any if …

Lire la suite

[CPUFREQ] s5pv210-cpufreq.c: Add missing clk_put

Author: Julia Lawall <julia@diku.dk> The successive calls to clk_get each call clk_put in the case of failure, but this is not done for subsequent error handling code. The calls to clk_get are moved to the end of the function, and appropriate gotos are added. A simplified version of the semantic match that finds this problem …

Lire la suite

drivers/net/can/flexcan.c: add missing clk_put

Author: Julia Lawall <julia@diku.dk> The failed_get label is used after the call to clk_get has succeeded, so it should be moved up above the call to clk_put. The failed_req labels doesn’t do anything different than failed_get, so delete it. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // …

Lire la suite

drivers/video/pxa168fb.c: add missing clk_put

Author: Julia Lawall <julia@diku.dk> Add a label for error-handling code in the case where only clk_get has succeeded. Rename the label failed to be consistent with the rest. A simplified version of the semantic match that finds the missing clk_put is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = clk_get@p1(…); …

Lire la suite

drivers/video/imxfb.c: add missing clk_put

Author: Julia Lawall <julia@diku.dk> Reorder the labels at the end of the function to correspond to the order in which the resources are allocated. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = clk_get@p1(…); … when != e1 = …

Lire la suite

drivers/usb/host/ohci-pxa27x.c: add missing clk_put

Author: Julia Lawall <julia@diku.dk> Add a label before the call to clk_put and jump to that in the error handling code that occurs after the call to clk_get has succeeded. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = …

Lire la suite

BtrLinux
Résumé de la politique de confidentialité

Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.