Skip to content

Commit

Permalink
m68k: remove duplicate asm offset for task thread.info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Dec 24, 2011
1 parent 409ee24 commit 8d362b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion arch/m68k/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion arch/m68k/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 8d362b0

Please sign in to comment.