Quentin LAMBERT

Author's posts

cmd640: add __init attribute

Author: Julia Lawall <julia.lawall@lip6.fr> Add __init attribute on a function that is only called from other __init functions and that is not inlined, at least with gcc version 4.8.4 on an x86 machine with allyesconfig. Currently, the function is put in the .text.unlikely segment. Declaring it as __init will cause it to be put in …

Continue reading

TTY: add __init attribute

Author: Julia Lawall <Julia.Lawall@lip6.fr> Add __init attribute on a function that is only called from other __init functions and that is not inlined, at least with gcc version 4.8.4 on an x86 machine with allyesconfig. Currently, the function is put in the .text.unlikely segment. Declaring it as __init will cause it to be put in …

Continue reading

clocksource/drivers/mtk_timer: Add __init attribute

Author: Julia Lawall <Julia.Lawall@lip6.fr> Add __init attribute on a function that is only called from other __init functions and that is not inlined, at least with gcc version 4.8.4 on an x86 machine with allyesconfig. Currently, the function is put in the .text.unlikely segment. Declaring it as __init will cause it to be put in …

Continue reading

arcnet: com90xx: add __init attribute

Author: Julia Lawall <julia.lawall@lip6.fr> Add __init attribute on a function that is only called from other __init functions and that is not inlined, at least with gcc version 4.8.4 on an x86 machine with allyesconfig. Currently, the function is put in the .text.unlikely segment. Declaring it as __init will cause it to be put in …

Continue reading

clk: qoriq: add __init attribute

Author: Julia Lawall <Julia.Lawall@lip6.fr> Add __init attribute on a function that is only called from other __init functions and that is not inlined, at least with gcc version 4.8.4 on an x86 machine with allyesconfig. Currently, the function is put in the .text.unlikely segment. Declaring it as __init will cause it to be put in …

Continue reading

usb: gadget: pch_udc: don’t free devm allocated memory

Author: Felipe Balbi <felipe.balbi@linux.intel.com> Coccinelle caught this instance of us kfree()ing devm-allocated memory. The solution is just to not do anything in our gadget_release. Signed-off-by: Felipe Balbi — drivers/usb/gadget/udc/pch_udc.c | 14 +————- 1 file changed, 1 insertion(+), 13 deletions(-)   diff –git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index b2b70d4..ebc51ec 100644 — a/drivers/usb/gadget/udc/pch_udc.c +++ b/drivers/usb/gadget/udc/pch_udc.c @@ -2835,17 +2835,6 @@ …

Continue reading

mtd: nand: omap2: fix compare_const_fl.cocci warnings

Author: Julia Lawall <julia.lawall@lip6.fr> Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci CC: Rafał Miłecki Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Boris Brezillon — drivers/mtd/nand/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 16da65b..141852f 100644 — a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -216,7 +216,7 @@ …

Continue reading

net: fjes: Use resource_size

Author: Vaishali Thakkar <vaishali.thakkar@oracle.com> Use the function resource_size instead of explicit computation. Problem found using Coccinelle. Signed-off-by: Vaishali Thakkar Signed-off-by: David S. Miller — drivers/net/fjes/fjes_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c index 0ddb54f..061b4af 100644 — a/drivers/net/fjes/fjes_main.c +++ b/drivers/net/fjes/fjes_main.c @@ -1129,7 +1129,7 @@ static int fjes_probe(struct platform_device …

Continue reading

dm thin: Remove return statement from void function

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Return statement at the end of a void function is useless. The Coccinelle semantic patch used to make this change is as follows: // @@ identifier f; expression e; @@ void f(…) { } // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Mike Snitzer — drivers/md/dm-thin.c | 2 +- 1 file changed, …

Continue reading

clk: sunxi: Use resource_size

Author: Vaishali Thakkar <vaishali.thakkar@oracle.com> Use the function resource_size instaed of explicit computation. Problem found using Coccinelle. Signed-off-by: Vaishali Thakkar Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard — drivers/clk/sunxi/clk-sun9i-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/clk/sunxi/clk-sun9i-mmc.c b/drivers/clk/sunxi/clk-sun9i-mmc.c index a9b1761..0c2dd02 100644 — a/drivers/clk/sunxi/clk-sun9i-mmc.c +++ b/drivers/clk/sunxi/clk-sun9i-mmc.c @@ -106,7 +106,7 @@ static int …

Continue reading