diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-09-02 00:20:06 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-12-24 06:47:56 -0500 |
commit | 8d362b0dea1a35bea8d7d281317eb7ccb713edcb (patch) | |
tree | 83f410762fc5a61bb876686d19dabe4098e62386 | |
parent | 409ee2455c95495e182379883a568df1d40f5864 (diff) |
m68k: remove duplicate asm offset for task thread.info
We have a duplicate name and definition for the offset of the thread.info
struct within the task struct in our asm-offsets.c code. Remove one of them,
and consolidate to use a single define, TASK_INFO.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
-rw-r--r-- | arch/m68k/include/asm/thread_info.h | 2 | ||||
-rw-r--r-- | arch/m68k/kernel/asm-offsets.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/m68k/include/asm/thread_info.h b/arch/m68k/include/asm/thread_info.h index 790988967ba7..e4e2159ca6ec 100644 --- a/arch/m68k/include/asm/thread_info.h +++ b/arch/m68k/include/asm/thread_info.h | |||
@@ -57,7 +57,7 @@ struct thread_info { | |||
57 | #define task_thread_info(tsk) ((struct thread_info *) NULL) | 57 | #define task_thread_info(tsk) ((struct thread_info *) NULL) |
58 | #else | 58 | #else |
59 | #include <asm/asm-offsets.h> | 59 | #include <asm/asm-offsets.h> |
60 | #define task_thread_info(tsk) ((struct thread_info *)((char *)tsk+TASK_TINFO)) | 60 | #define task_thread_info(tsk) ((struct thread_info *)((char *)tsk+TASK_INFO)) |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #define init_thread_info (init_task.thread.info) | 63 | #define init_thread_info (init_task.thread.info) |
diff --git a/arch/m68k/kernel/asm-offsets.c b/arch/m68k/kernel/asm-offsets.c index 983fed9d469b..f6a54e203e8e 100644 --- a/arch/m68k/kernel/asm-offsets.c +++ b/arch/m68k/kernel/asm-offsets.c | |||
@@ -25,7 +25,6 @@ int main(void) | |||
25 | DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); | 25 | DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); |
26 | DEFINE(TASK_MM, offsetof(struct task_struct, mm)); | 26 | DEFINE(TASK_MM, offsetof(struct task_struct, mm)); |
27 | DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info)); | 27 | DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info)); |
28 | DEFINE(TASK_TINFO, offsetof(struct task_struct, thread.info)); | ||
29 | 28 | ||
30 | /* offsets into the thread struct */ | 29 | /* offsets into the thread struct */ |
31 | DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); | 30 | DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); |