lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080609190204.GA13674@elte.hu>
Date:	Mon, 9 Jun 2008 21:02:04 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Paolo Ciarrocchi <paolo.ciarrocchi@...il.com>
Cc:	hpa <hpa@...or.com>, tglx <tglx@...utronix.de>,
	Linux Kernel <linux-kernel@...r.kernel.org>,
	the arch/x86 maintainers <x86@...nel.org>
Subject: Re: [PATCH] x86: coding style fixes to arch/x86/kernel/io_apic_32.c


* Paolo Ciarrocchi <paolo.ciarrocchi@...il.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@...e.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@...e.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>
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ