riscv: Cleanup unnecessary define in asm-offset.c
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 12 Jul 2020 13:41:49 +0000 (13:41 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 30 Jul 2020 18:37:44 +0000 (11:37 -0700)
commit3e7b669c6c5375131db751e6e748af27bab318f6
treece170907d2de66e14ac94affa1b0e6e78d1d574b
parentebc00dde8a975a543f5e1a7cdac93fef89fefe58
riscv: Cleanup unnecessary define in asm-offset.c

 - TASK_THREAD_SP is duplicated define
 - TASK_STACK is no use at all
 - Don't worry about thread_info's offset in task_struct, have
   a look on comment in include/linux/sched.h:

struct task_struct {
/*
 * For reasons of header soup (see current_thread_info()), this
 * must be the first element of task_struct.
 */
struct thread_info thread_info;

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/asm-offsets.c
arch/riscv/kernel/entry.S