From: Glauber de Oliveira Costa Date: Wed, 30 Jan 2008 12:31:38 +0000 (+0100) Subject: x86: unify mm_segment_t definition X-Git-Tag: v2.6.25-rc1~1143^2~533 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc87e9061a5635fe1b367dad95498846dd5eda31;p=linux-2.6 x86: unify mm_segment_t definition This patch moves the mm_segment_t structure definition to processor.h This makes mmsegment.h file useless, and it is deleted. Signed-off-by: Glauber de Oliveira Costa Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/asm-x86/mmsegment.h b/include/asm-x86/mmsegment.h deleted file mode 100644 index d3f80c9963..0000000000 --- a/include/asm-x86/mmsegment.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef _ASM_MMSEGMENT_H -#define _ASM_MMSEGMENT_H 1 - -typedef struct { - unsigned long seg; -} mm_segment_t; - -#endif diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index 2b896b0aa3..87466b6d3b 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h @@ -424,6 +424,11 @@ struct extended_sigtable { struct extended_signature sigs[0]; }; +typedef struct { + unsigned long seg; +} mm_segment_t; + + /* * create a kernel thread without removing it from tasklists */ diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h index f0f7ca4844..fa921aa1a9 100644 --- a/include/asm-x86/processor_32.h +++ b/include/asm-x86/processor_32.h @@ -103,11 +103,6 @@ union i387_union { struct i387_soft_struct soft; }; -typedef struct { - unsigned long seg; -} mm_segment_t; - - #define INIT_THREAD { \ .sp0 = sizeof(init_stack) + (long)&init_stack, \ .vm86_info = NULL, \ diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h index bfc4ce6e2f..1a258749b7 100644 --- a/include/asm-x86/processor_64.h +++ b/include/asm-x86/processor_64.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include diff --git a/include/asm-x86/thread_info_64.h b/include/asm-x86/thread_info_64.h index c2911a99cc..9b531ea015 100644 --- a/include/asm-x86/thread_info_64.h +++ b/include/asm-x86/thread_info_64.h @@ -21,7 +21,7 @@ #ifndef __ASSEMBLY__ struct task_struct; struct exec_domain; -#include +#include struct thread_info { struct task_struct *task; /* main task structure */