m68k: remove duplicate asm offset for task thread.info
authorGreg Ungerer <gerg@uclinux.org>
Fri, 2 Sep 2011 04:20:06 +0000 (14:20 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sat, 24 Dec 2011 11:47:56 +0000 (21:47 +1000)
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>
arch/m68k/include/asm/thread_info.h
arch/m68k/kernel/asm-offsets.c

index 7909889..e4e2159 100644 (file)
@@ -57,7 +57,7 @@ struct thread_info {
 #define task_thread_info(tsk)  ((struct thread_info *) NULL)
 #else
 #include <asm/asm-offsets.h>
-#define task_thread_info(tsk)  ((struct thread_info *)((char *)tsk+TASK_TINFO))
+#define task_thread_info(tsk)  ((struct thread_info *)((char *)tsk+TASK_INFO))
 #endif
 
 #define init_thread_info       (init_task.thread.info)
index 983fed9..f6a54e2 100644 (file)
@@ -25,7 +25,6 @@ int main(void)
        DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
        DEFINE(TASK_MM, offsetof(struct task_struct, mm));
        DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info));
-       DEFINE(TASK_TINFO, offsetof(struct task_struct, thread.info));
 
        /* offsets into the thread struct */
        DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));