Catégorie : Linux

xtensa: Convert genirq namespace

Author: Thomas Gleixner <tglx@linutronix.de> Scripted with coccinelle. Signed-off-by: Thomas Gleixner — arch/xtensa/kernel/irq.c | 10 +++++—– arch/xtensa/platforms/s6105/device.c | 2 +- arch/xtensa/variants/s6000/gpio.c | 14 +++++++——- 3 files changed, 13 insertions(+), 13 deletions(-)   diff –git a/arch/xtensa/kernel/irq.c b/arch/xtensa/kernel/irq.c index 8438319..98c0d6b 100644 — a/arch/xtensa/kernel/irq.c +++ b/arch/xtensa/kernel/irq.c @@ -164,25 +164,25 @@ void __init init_IRQ(void) int mask = 1 << index; …

Lire la suite

microblaze: Convert to new irq function names

Author: Thomas Gleixner <tglx@linutronix.de> Namespace conversion scripted with coccinelle. Also retrieve the irq type from irq_data in intc_enable_or_unmask() Signed-off-by: Thomas Gleixner — arch/microblaze/kernel/intc.c | 6 +++— arch/microblaze/pci/pci-common.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)   diff –git a/arch/microblaze/kernel/intc.c b/arch/microblaze/kernel/intc.c index e466128..5ba7e16 100644 — a/arch/microblaze/kernel/intc.c +++ b/arch/microblaze/kernel/intc.c @@ -50,7 +50,7 @@ static void …

Lire la suite

arm: Fold irq_set_chip/irq_set_handler

Author: Thomas Gleixner <tglx@linutronix.de> Use irq_set_chip_and_handler() instead. Converted with coccinelle. Signed-off-by: Thomas Gleixner — arch/arm/common/gic.c | 3 +– arch/arm/common/it8152.c | 4 ++– arch/arm/common/locomo.c | 3 +– arch/arm/common/sa1111.c | 8 ++++—- arch/arm/common/vic.c | 4 ++– arch/arm/kernel/ecard.c | 4 ++– arch/arm/mach-at91/gpio.c | 4 ++– arch/arm/mach-at91/irq.c | 3 +– arch/arm/mach-clps711x/irq.c | 8 ++++—- arch/arm/mach-dove/irq.c | 3 +– arch/arm/mach-ebsa110/core.c …

Lire la suite

arm: Reorder irq_set_ function calls

Author: Thomas Gleixner <tglx@linutronix.de> Reorder irq_set_chip() irq_set_chip_data() irq_set_handler() to irq_set_chip() irq_set_handler() irq_set_chip_data() so the next patch can combine irq_set_chip() and irq_set_handler() to irq_set_chip_and_handler(). Automated conversion with coccinelle. Signed-off-by: Thomas Gleixner — arch/arm/common/gic.c | 2 +- arch/arm/common/locomo.c | 2 +- arch/arm/common/sa1111.c | 4 ++– arch/arm/common/vic.c | 2 +- arch/arm/mach-exynos4/irq-combiner.c | 2 +- arch/arm/mach-pxa/irq.c | 4 ++– …

Lire la suite

arm: Cleanup the irq namespace

Author: Thomas Gleixner <tglx@linutronix.de> Convert to the new function names. Automated with coccinelle. Signed-off-by: Thomas Gleixner — arch/arm/common/gic.c | 14 ++++—- arch/arm/common/it8152.c | 4 +– arch/arm/common/locomo.c | 18 +++++—— arch/arm/common/sa1111.c | 24 +++++++——- arch/arm/common/vic.c | 6 ++– arch/arm/kernel/ecard.c | 6 ++– arch/arm/mach-at91/at91cap9_devices.c | 6 ++– arch/arm/mach-at91/gpio.c | 10 +++— arch/arm/mach-at91/irq.c | 4 +– arch/arm/mach-bcmring/irq.c | …

Lire la suite

drivers/staging/tty/specialix.c: convert func_enter to func_exit

Author: Julia Lawall <julia@diku.dk> Convert calls to func_enter on leaving a function to func_exit. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ @@ – func_enter(); + func_exit(); return…; // Signed-off-by: Julia Lawall Cc: Roger Wolff Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — drivers/staging/tty/specialix.c | 8 ++++—- 1 file changed, 4 …

Lire la suite

drivers/tty/bfin_jtag_comm.c: avoid calling put_tty_driver on NULL

Author: Julia Lawall <julia@diku.dk> put_tty_driver calls tty_driver_kref_put on its argument, and then tty_driver_kref_put calls kref_put on the address of a field of this argument. kref_put checks for NULL, but in this case the field is likely to have some offset and so the result of taking its address will not be NULL. Labels are added …

Lire la suite

drivers/net/a2065.c: Convert release_resource to release_region/release_mem_region

Author: Julia Lawall <julia@diku.dk> Request_mem_region should be used with release_mem_region, not release_resource. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,E; @@ *x = request_mem_region(…) … when != release_mem_region(x) when != x = E * release_resource(x); // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — drivers/net/a2065.c | 10 +++++—– …

Lire la suite

drivers/net/ariadne.c: Convert release_resource to release_region/release_mem_region

Author: Julia Lawall <julia@diku.dk> Request_mem_region should be used with release_mem_region, not release_resource. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,E; @@ *x = request_mem_region(…) … when != release_mem_region(x) when != x = E * release_resource(x); // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — drivers/net/ariadne.c | 10 +++++—– …

Lire la suite

sched/rt: Use schedule_preempt_disabled()

Author: Thomas Gleixner <tglx@linutronix.de> Coccinelle based conversion. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-24swm5zut3h9c4a6s46x8rws@git.kernel.org Signed-off-by: Ingo Molnar — arch/arm/kernel/process.c | 4 +— arch/avr32/kernel/process.c | 4 +— arch/blackfin/kernel/process.c | 4 +— arch/cris/kernel/process.c | 4 +— arch/frv/kernel/process.c | 4 +— arch/h8300/kernel/process.c | 4 +— arch/ia64/kernel/process.c | 4 +— arch/m32r/kernel/process.c | 4 +— arch/m68k/kernel/process_mm.c | 4 +— …

Lire la suite