From: tglx@linutronix.de
To: uclinux-v850@lsi.nec.co.jp
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] V850: [PATCH resend] C99 initializers for hw_interrupt_type structures
Date: Sun, 10 Jul 2005 23:47:26 +0200 (CEST) [thread overview]
Message-ID: <20050710235040.4.patchmail@tglx.tec.linutronix.de> (raw)
In-Reply-To: 1121031634.26713.243.camel@tglx.tec.linutronix.de
Convert the initializers of hw_interrupt_type structures to C99 initializers.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
irq.c | 14 +++++++-------
setup.c | 14 +++++++-------
sim.c | 14 +++++++-------
3 files changed, 21 insertions(+), 21 deletions(-)
---
diff -urN --exclude='*~' linux-2.6.13-rc2/arch/v850/kernel/irq.c linux-2.6.13-rc2-armirq/arch/v850/kernel/irq.c
--- linux-2.6.13-rc2/arch/v850/kernel/irq.c 2005-07-09 13:04:28.000000000 +0200
+++ linux-2.6.13-rc2-armirq/arch/v850/kernel/irq.c 2005-07-09 13:10:42.000000000 +0200
@@ -67,13 +67,13 @@
#define end_none enable_none
struct hw_interrupt_type no_irq_type = {
- "none",
- startup_none,
- shutdown_none,
- enable_none,
- disable_none,
- ack_none,
- end_none
+ .typename = "none",
+ .startup = startup_none,
+ .shutdown = shutdown_none,
+ .enable = enable_none,
+ .disable = disable_none,
+ .ack = ack_none,
+ .end = end_none
};
volatile unsigned long irq_err_count, spurious_count;
diff -urN --exclude='*~' linux-2.6.13-rc2/arch/v850/kernel/setup.c linux-2.6.13-rc2-armirq/arch/v850/kernel/setup.c
--- linux-2.6.13-rc2/arch/v850/kernel/setup.c 2005-07-09 13:04:28.000000000 +0200
+++ linux-2.6.13-rc2-armirq/arch/v850/kernel/setup.c 2005-07-09 13:10:42.000000000 +0200
@@ -128,13 +128,13 @@
}
static struct hw_interrupt_type nmi_irq_type = {
- "NMI",
- irq_zero, /* startup */
- irq_nop, /* shutdown */
- irq_nop, /* enable */
- irq_nop, /* disable */
- irq_nop, /* ack */
- nmi_end, /* end */
+ .typename = "NMI",
+ .startup = irq_zero, /* startup */
+ .shutdown = irq_nop, /* shutdown */
+ .enable = irq_nop, /* enable */
+ .disable = irq_nop, /* disable */
+ .ack = irq_nop, /* ack */
+ .end = nmi_end, /* end */
};
void __init init_IRQ (void)
diff -urN --exclude='*~' linux-2.6.13-rc2/arch/v850/kernel/sim.c linux-2.6.13-rc2-armirq/arch/v850/kernel/sim.c
--- linux-2.6.13-rc2/arch/v850/kernel/sim.c 2005-07-09 13:04:28.000000000 +0200
+++ linux-2.6.13-rc2-armirq/arch/v850/kernel/sim.c 2005-07-09 13:10:42.000000000 +0200
@@ -73,13 +73,13 @@
static unsigned irq_zero (unsigned irq) { return 0; }
static struct hw_interrupt_type sim_irq_type = {
- "IRQ",
- irq_zero, /* startup */
- irq_nop, /* shutdown */
- irq_nop, /* enable */
- irq_nop, /* disable */
- irq_nop, /* ack */
- irq_nop, /* end */
+ .typename = "IRQ",
+ .startup = irq_zero, /* startup */
+ .shutdown = irq_nop, /* shutdown */
+ .enable = irq_nop, /* enable */
+ .disable = irq_nop, /* disable */
+ .ack = irq_nop, /* ack */
+ .end = irq_nop, /* end */
};
void __init mach_init_irqs (void)
next prev parent reply other threads:[~2005-07-10 21:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-10 21:40 [PATCH resend] C99 initializers for hw_interrupt_type structures Thomas Gleixner
2005-07-10 21:47 ` [PATCH] PPC: " tglx
2005-07-10 21:47 ` tglx
2005-07-10 21:47 ` [PATCH] SH: " tglx
2005-07-10 21:47 ` [PATCH] MIPS: " tglx
2005-07-11 9:05 ` Ralf Baechle
2005-07-10 21:47 ` tglx [this message]
2005-07-10 21:47 ` [PATCH] SH64: " tglx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050710235040.4.patchmail@tglx.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=uclinux-v850@lsi.nec.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.