* [PATCH] x86: fix compile warning for !(ACPI && X86_IO_APIC) builds
@ 2008-10-13 23:00 Simon Holm Thøgersen
2008-10-14 11:53 ` Andreas Herrmann
0 siblings, 1 reply; 3+ messages in thread
From: Simon Holm Thøgersen @ 2008-10-13 23:00 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Andreas Herrmann, linux-kernel
This fixes the following compile warning for !(ACPI && X86_IO_APIC) builds:
arch/x86/kernel/early-quirks.c:99: warning: 'ati_ixp4x0_rev' defined
but not used
that was introduced by 33fb0e4 (x86: SB450: skip IRQ0 override if it is not
routed to INT2 of IOAPIC).
Signed-off-by: Simon Holm Thøgersen <odie@cs.aau.dk>
---
arch/x86/kernel/early-quirks.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c
index 733c4f8..f60afb6 100644
--- a/arch/x86/kernel/early-quirks.c
+++ b/arch/x86/kernel/early-quirks.c
@@ -95,6 +95,7 @@ static void __init nvidia_bugs(int num, int slot, int func)
}
+#if defined(CONFIG_ACPI) && defined (CONFIG_X86_IO_APIC)
static u32 ati_ixp4x0_rev(int num, int slot, int func)
{
u32 d;
@@ -115,7 +116,6 @@ static u32 ati_ixp4x0_rev(int num, int slot, int func)
static void __init ati_bugs(int num, int slot, int func)
{
-#if defined(CONFIG_ACPI) && defined (CONFIG_X86_IO_APIC)
u32 d;
u8 b;
@@ -138,8 +138,12 @@ static void __init ati_bugs(int num, int slot, int func)
printk(KERN_INFO "If you got timer trouble "
"try acpi_use_timer_override\n");
}
-#endif
}
+#else
+static void __init ati_bugs(int num, int slot, int func)
+{
+}
+#endif
#ifdef CONFIG_DMAR
static void __init intel_g33_dmar(int num, int slot, int func)
--
1.5.6.2.255.gbed62
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] x86: fix compile warning for !(ACPI && X86_IO_APIC) builds
2008-10-13 23:00 [PATCH] x86: fix compile warning for !(ACPI && X86_IO_APIC) builds Simon Holm Thøgersen
@ 2008-10-14 11:53 ` Andreas Herrmann
2008-10-16 11:57 ` Andreas Herrmann
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Herrmann @ 2008-10-14 11:53 UTC (permalink / raw)
To: Simon Holm Thøgersen; +Cc: Ingo Molnar, linux-kernel
On Tue, Oct 14, 2008 at 01:00:50AM +0200, Simon Holm Thøgersen wrote:
> This fixes the following compile warning for !(ACPI && X86_IO_APIC) builds:
>
> arch/x86/kernel/early-quirks.c:99: warning: 'ati_ixp4x0_rev' defined
> but not used
Acked-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Makes sense.
Thanks,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86: fix compile warning for !(ACPI && X86_IO_APIC) builds
2008-10-14 11:53 ` Andreas Herrmann
@ 2008-10-16 11:57 ` Andreas Herrmann
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Herrmann @ 2008-10-16 11:57 UTC (permalink / raw)
To: Simon Holm Thøgersen; +Cc: Ingo Molnar, linux-kernel
On Tue, Oct 14, 2008 at 01:53:07PM +0200, Andreas Herrmann wrote:
> On Tue, Oct 14, 2008 at 01:00:50AM +0200, Simon Holm Thøgersen wrote:
> > This fixes the following compile warning for !(ACPI && X86_IO_APIC) builds:
> >
> > arch/x86/kernel/early-quirks.c:99: warning: 'ati_ixp4x0_rev' defined
> > but not used
>
> Acked-by: Andreas Herrmann <andreas.herrmann3@amd.com>
>
Ingo,
maybe it's best to just apply this patch
http://marc.info/?l=linux-kernel&m=122406442128207
It should also fix the compile warning.
Thanks,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-16 11:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13 23:00 [PATCH] x86: fix compile warning for !(ACPI && X86_IO_APIC) builds Simon Holm Thøgersen
2008-10-14 11:53 ` Andreas Herrmann
2008-10-16 11:57 ` Andreas Herrmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox