[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B89A359.9020708@zytor.com>
Date: Sat, 27 Feb 2010 14:57:29 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Yinghai Lu <yinghai@...nel.org>
CC: Ingo Molnar <mingo@...e.hu>, linux-tip-commits@...r.kernel.org,
linux-kernel@...r.kernel.org, mingo@...hat.com,
ebiederm@...ssion.com, garyhade@...ibm.com,
iranna.ankad@...ibm.com, suresh.b.siddha@...el.com,
tglx@...utronix.de, trenn@...e.de
Subject: Re: [tip:x86/apic] x86: Fix out of order gsi -- add remap_ioapic_gsi_to_irq()
On 02/27/2010 10:52 AM, Yinghai Lu wrote:
>
> Ingo found:
> | x86: Fix out of order gsi -- add remap_ioapic_gsi_to_irq()
> cause:
> arch/x86/kernel/apic/io_apic.c:1042: error: implicit declaration of function ?remap_ioapic_gsi_to_irq?
>
> actually when !CONFIG_ACPI, we have
> #define acpi_ioapic 0
>
> somehow we still get warning for
> #if (!0) {
> ...
> } else {
> ...
> remap_ioapic_gsi_to_irq...
> }
>
> gcc bug?
>
You're confusing #if and if ( ) { .. }.
Inside an if () { ... } clause the contents still needs to be correct,
even if it will get optimized out.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists