From: Ingo Molnar <mingo@elte.hu>
To: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Cc: hpa <hpa@zytor.com>, tglx <tglx@linutronix.de>,
Linux Kernel <linux-kernel@vger.kernel.org>,
the arch/x86 maintainers <x86@kernel.org>
Subject: Re: [PATCH] x86: coding style fixes to arch/x86/kernel/io_apic_32.c
Date: Mon, 9 Jun 2008 21:02:04 +0200 [thread overview]
Message-ID: <20080609190204.GA13674@elte.hu> (raw)
In-Reply-To: <20080608130718.5d36e25b@paolo-desktop>
* Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> wrote:
> Before:
> total: 91 errors, 73 warnings, 2850 lines checked
>
> After:
> total: 1 errors, 47 warnings, 2848 lines checked
applied, thanks. A small detail:
> +++ b/arch/x86/kernel/io_apic_32.c
> @@ -37,12 +37,12 @@
> #include <linux/kthread.h>
> #include <linux/jiffies.h> /* time_after() */
>
> -#include <asm/io.h>
> -#include <asm/smp.h>
> +#include <linux/io.h>
> +#include <linux/smp.h>
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>
next prev parent reply other threads:[~2008-06-09 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-08 11:07 Paolo Ciarrocchi
2008-06-09 19:02 ` Ingo Molnar [this message]
2008-06-09 20:59 ` Paolo Ciarrocchi
2008-06-10 10:43 ` Ingo Molnar
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=20080609190204.GA13674@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paolo.ciarrocchi@gmail.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®