linux-mips
[Top] [All Lists]

Strange initialization in arch/mips/kernel/smtc.c:1094?

To: "Kevin D. Kissell" <kevink@paralogos.com>
Subject: Strange initialization in arch/mips/kernel/smtc.c:1094?
From: Rusty Russell <rusty@rustcorp.com.au>
Date: Mon, 9 Feb 2009 21:49:16 +1030
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.11.0 (Linux/2.6.27-11-generic; KDE/4.2.0; i686; ; )
Latest Linus kernel, but it's been there a while:

static struct irqaction irq_ipi = {
        .handler        = ipi_interrupt,
        .flags          = IRQF_DISABLED,
        .name           = "SMTC_IPI",
        .flags          = IRQF_PERCPU
};

.flags is initialized twice: I'm amazed this even compiles.

Cheers,
Rusty.

<Prev in Thread] Current Thread [Next in Thread>