]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: cleanup duplicate includes
authorJoe Perches <joe@perches.com>
Sun, 9 Mar 2008 19:35:00 +0000 (12:35 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:58 +0000 (17:40 +0200)
Signed-off-by: Joe Perches <joe@perches.com>
 arch/x86/kernel/reboot.c      |    1 -
 include/asm-x86/elf.h         |    5 ++---
 include/asm-x86/posix_types.h |    8 +-------
 include/asm-x86/processor.h   |    3 +--
 include/asm-x86/unistd.h      |    8 +-------
 5 files changed, 5 insertions(+), 20 deletions(-)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/reboot.c
include/asm-x86/elf.h
include/asm-x86/posix_types.h
include/asm-x86/processor.h
include/asm-x86/unistd.h

index 484c4a80d38a53217eee32a0c8470d86527c40f6..66cd4afc1e576565a63c232fd769cba60d162a0e 100644 (file)
@@ -1,5 +1,4 @@
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/reboot.h>
 #include <linux/init.h>
 #include <linux/pm.h>
index fb62f9941e3855414dd9c53ad404f5ad2cd6d020..77325646e2f4ee13487449ab688be24b92be4004 100644 (file)
@@ -82,8 +82,9 @@ extern unsigned int vdso_enabled;
 #define elf_check_arch_ia32(x) \
        (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486))
 
-#ifdef CONFIG_X86_32
 #include <asm/processor.h>
+
+#ifdef CONFIG_X86_32
 #include <asm/system.h>                /* for savesegment */
 #include <asm/desc.h>
 
@@ -135,8 +136,6 @@ extern unsigned int vdso_enabled;
 
 #else /* CONFIG_X86_32 */
 
-#include <asm/processor.h>
-
 /*
  * This is used to ensure we don't load something for the wrong architecture.
  */
index bb7133dc155d4bebb9094693a8b823d4ae127e19..fe312a5ba20478da9bf5afc91edf4b526bbe0ce5 100644 (file)
@@ -1,11 +1,5 @@
 #ifdef __KERNEL__
-# ifdef CONFIG_X86_32
-#  include "posix_types_32.h"
-# else
-#  include "posix_types_64.h"
-# endif
-#else
-# ifdef __i386__
+# if defined(CONFIG_X86_32) || defined(__i386__)
 #  include "posix_types_32.h"
 # else
 #  include "posix_types_64.h"
index d590da88c0dfb7fd44cba63cd66c584ce8f5bc83..cc0268395ea2e0203c9b2683dcada5187b15ead3 100644 (file)
@@ -3,8 +3,7 @@
 
 #include <asm/processor-flags.h>
 
-/* migration helpers, for KVM - will be removed in 2.6.25: */
-#include <asm/vm86.h>
+/* migration helper, for KVM - will be removed in 2.6.25: */
 #define Xgt_desc_struct        desc_ptr
 
 /* Forward declaration, a strange C thing */
index 2a58ed3e51d8265627e185d5d8be3783c5ea9bf4..effc7ad8e12f66bc28d68b4b54134fcf11143c1f 100644 (file)
@@ -1,11 +1,5 @@
 #ifdef __KERNEL__
-# ifdef CONFIG_X86_32
-#  include "unistd_32.h"
-# else
-#  include "unistd_64.h"
-# endif
-#else
-# ifdef __i386__
+# if defined(CONFIG_X86_32) || defined(__i386__)
 #  include "unistd_32.h"
 # else
 #  include "unistd_64.h"