Catégorie : Linux

irqchip/keystone: Prepare keystone_irq_handler for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

irqchip/imgpdc: Prepare pdc_intc_perip_isr for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

irqchip/brcmstb-l2: Prepare brcmstb_l2_intc_irq_handle for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

irqchip/exynos: Prepare combiner_handle_cascade_irq for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

i2c: omap: fix cleanup regression

Author: Wolfram Sang <wsa@the-dreams.de> Patch « i2c: omap: abolish variable name confusion » triggered a coccinelle warning which we fix here: drivers/i2c/busses/i2c-omap.c:1333:5-24: pm_runtime_get_sync returns < 0 as error. Unecessary IS_ERR_VALUE at line 1334 Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index afc3bfc..08d26ba 100644 --- …

Lire la suite

staging: lustre: Deletion of unnecessary checks before three function calls

Author: Markus Elfring <elfring@users.sourceforge.net> The following functions test whether their argument is NULL and then return immediately. * kfree * ll_file_data_put * ptlrpc_connection_put Thus the test around such calls is not needed. This issue was detected by using the Coccinelle software. See also a previous update suggestion: « remove unneeded null test before free » by Julia …

Lire la suite

gpio/davinci: Fix race in installing chained irq handler

Author: Thomas Gleixner <tglx@linutronix.de> Fix a race where a pending interrupt could be received and the handler called before the handler’s data has been setup, by converting to irq_set_chained_handler_and_data(). Search and conversion was done with coccinelle. Reported-by: Russell King Signed-off-by: Thomas Gleixner Cc: Julia Lawall Cc: Linus Walleij Cc: Alexandre Courbot — drivers/gpio/gpio-davinci.c | 6 …

Lire la suite

gpio/davinci: Fix race in installing chained irq handler

Author: Thomas Gleixner <tglx@linutronix.de> Fix a race where a pending interrupt could be received and the handler called before the handler’s data has been setup, by converting to irq_set_chained_handler_and_data(). Search and conversion was done with coccinelle. Reported-by: Russell King Signed-off-by: Thomas Gleixner Cc: Julia Lawall Cc: Linus Walleij Cc: Alexandre Courbot — drivers/gpio/gpio-davinci.c | 6 …

Lire la suite

spmi/pmic_arb: Consolidate chained IRQ handler install/remove

Author: Thomas Gleixner <tglx@linutronix.de> Chained irq handlers usually set up handler data as well. We now have a function to set both under irq_desc->lock. Replace the two calls with one. Search and conversion was done with coccinelle. Reported-by: Russell King Signed-off-by: Thomas Gleixner Cc: Greg Kroah-Hartman Cc: Jiang Liu Cc: Julia Lawall Link: http://lkml.kernel.org/r/20150713151750.831790045@linutronix.de Signed-off-by: …

Lire la suite

sh/intc: Prepare irq flow handlers for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite