Skip to content

Commit

Permalink
x86: unify mm_segment_t definition
Browse files Browse the repository at this point in the history
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 <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Jan 30, 2008
1 parent 2c1c468 commit fc87e90
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
8 changes: 0 additions & 8 deletions include/asm-x86/mmsegment.h

This file was deleted.

5 changes: 5 additions & 0 deletions include/asm-x86/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 0 additions & 5 deletions include/asm-x86/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down
1 change: 0 additions & 1 deletion include/asm-x86/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <asm/msr.h>
#include <asm/current.h>
#include <asm/system.h>
#include <asm/mmsegment.h>
#include <linux/personality.h>
#include <asm/desc_defs.h>

Expand Down
2 changes: 1 addition & 1 deletion include/asm-x86/thread_info_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef __ASSEMBLY__
struct task_struct;
struct exec_domain;
#include <asm/mmsegment.h>
#include <asm/processor.h>

struct thread_info {
struct task_struct *task; /* main task structure */
Expand Down

0 comments on commit fc87e90

Please sign in to comment.