Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] V850: C99 initializers for hw_interrupt_type structures

Convert the initializers of hw_interrupt_type structures to C99 initializers.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Thomas Gleixner and committed by
Linus Torvalds
aecd4568 08d0fd07

+21 -21
+7 -7
arch/v850/kernel/irq.c
··· 67 67 #define end_none enable_none 68 68 69 69 struct hw_interrupt_type no_irq_type = { 70 - "none", 71 - startup_none, 72 - shutdown_none, 73 - enable_none, 74 - disable_none, 75 - ack_none, 76 - end_none 70 + .typename = "none", 71 + .startup = startup_none, 72 + .shutdown = shutdown_none, 73 + .enable = enable_none, 74 + .disable = disable_none, 75 + .ack = ack_none, 76 + .end = end_none 77 77 }; 78 78 79 79 volatile unsigned long irq_err_count, spurious_count;
+7 -7
arch/v850/kernel/setup.c
··· 138 138 } 139 139 140 140 static struct hw_interrupt_type nmi_irq_type = { 141 - "NMI", 142 - irq_zero, /* startup */ 143 - irq_nop, /* shutdown */ 144 - irq_nop, /* enable */ 145 - irq_nop, /* disable */ 146 - irq_nop, /* ack */ 147 - nmi_end, /* end */ 141 + .typename = "NMI", 142 + .startup = irq_zero, /* startup */ 143 + .shutdown = irq_nop, /* shutdown */ 144 + .enable = irq_nop, /* enable */ 145 + .disable = irq_nop, /* disable */ 146 + .ack = irq_nop, /* ack */ 147 + .end = nmi_end, /* end */ 148 148 }; 149 149 150 150 void __init init_IRQ (void)
+7 -7
arch/v850/kernel/sim.c
··· 73 73 static unsigned irq_zero (unsigned irq) { return 0; } 74 74 75 75 static struct hw_interrupt_type sim_irq_type = { 76 - "IRQ", 77 - irq_zero, /* startup */ 78 - irq_nop, /* shutdown */ 79 - irq_nop, /* enable */ 80 - irq_nop, /* disable */ 81 - irq_nop, /* ack */ 82 - irq_nop, /* end */ 76 + .typename = "IRQ", 77 + .startup = irq_zero, /* startup */ 78 + .shutdown = irq_nop, /* shutdown */ 79 + .enable = irq_nop, /* enable */ 80 + .disable = irq_nop, /* disable */ 81 + .ack = irq_nop, /* ack */ 82 + .end = irq_nop, /* end */ 83 83 }; 84 84 85 85 void __init mach_init_irqs (void)