Re: [PATCH] x86: coding style fixes to arch/x86/kernel/io_apic_32.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paolo Ciarrocchi <paolo.ciarrocchi@...>
Cc: hpa <hpa@...>, tglx <tglx@...>, Linux Kernel <linux-kernel@...>, the arch/x86 maintainers <x86@...>
Date: Monday, June 9, 2008 - 3:02 pm

* Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> wrote:


applied, thanks. A small detail:


i suspect checkpatch suggested that asm/smp.h -> linux/smp.h change, but 
there was a subtle detail here - asm/smp.h has dual role on x86, it also 
carries a fair number of low level details about APIC/SMP details - 
which matters on UP IOAPIC.

so the fix below was needed as well.

	Ingo

------------->
Subject: build fix to "x86: coding style fixes to arch/x86/kernel/io_apic_32.c"
From: Ingo Molnar <mingo@elte.hu>
Date: Mon Jun 09 20:58:55 CEST 2008

io_apic_32.c relied on asm/smp.h include, to pick up lowlevel
arch details:

arch/x86/kernel/io_apic_32.c:75: error: array type has incomplete element type
arch/x86/kernel/io_apic_32.c:79: error: array type has incomplete element type
arch/x86/kernel/io_apic_32.c:152: error: field ‘entry’ has incomplete type
arch/x86/kernel/io_apic_32.c:156: error: return type is an incomplete type
arch/x86/kernel/io_apic_32.c: In function ‘ioapic_read_entry’:
arch/x86/kernel/io_apic_32.c:163: warning: ‘return’ with a value, in function returning void
arch/x86/kernel/io_apic_32.c: At top level:

so add it back.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/io_apic_32.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/arch/x86/kernel/io_apic_32.c
===================================================================
--- linux.orig/arch/x86/kernel/io_apic_32.c
+++ linux/arch/x86/kernel/io_apic_32.c
@@ -39,6 +39,8 @@
 
 #include <linux/io.h>
 #include <linux/smp.h>
+
+#include <asm/smp.h>
 #include <asm/desc.h>
 #include <asm/timer.h>
 #include <asm/i8259.h>
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] x86: coding style fixes to arch/x86/kernel/io_ap..., Ingo Molnar, (Mon Jun 9, 3:02 pm)