Skip to content

Commit

Permalink
x86: cleanup duplicate includes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Ingo Molnar committed Apr 17, 2008
1 parent 537d916 commit e40c0fe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
1 change: 0 additions & 1 deletion arch/x86/kernel/reboot.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/pm.h>
Expand Down
5 changes: 2 additions & 3 deletions include/asm-x86/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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.
*/
Expand Down
8 changes: 1 addition & 7 deletions include/asm-x86/posix_types.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 1 addition & 2 deletions include/asm-x86/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
8 changes: 1 addition & 7 deletions include/asm-x86/unistd.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e40c0fe

Please sign in to comment.