Subject: Re: [RFC] [PATCH] task_pt_regs for powerpc systems

From: Benjamin Herrenschmidt <[email-masked]>
Date: Tue, 15 Jul 2008 19:15:57 +1000

On Tue, 2008-07-15 at 14:36 +0530, Srinivasa D S wrote:
> On Monday 14 July 2008 02:36:57 pm Benjamin Herrenschmidt wrote:
> 
> > > Signed-off-by: Srinivasa DS <[email-masked]>
> >
> > Can you send a cleanup patch against powerpc.git instead ?
> >
> 
> Resending the patch against powerpc.git tree.

Nah, your initial patch is there already :-) I'm just asking for a
cleanup one that removes the useless cast.

Cheers,
Ben.

> 
> Signed-off-by: Srinivasa DS <[email-masked]>
> 
> 
> ---
>  include/asm-powerpc/processor.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> Index: powerpc.git/include/asm-powerpc/processor.h
> ===================================================================
> --- powerpc.git.orig/include/asm-powerpc/processor.h
> +++ powerpc.git/include/asm-powerpc/processor.h
> @@ -234,6 +234,8 @@ struct thread_struct {
>  #define thread_saved_pc(tsk)    \
>          ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
>  
> +#define task_pt_regs(tsk)	((tsk)->thread.regs)
> +
>  unsigned long get_wchan(struct task_struct *p);
>  
>  #define KSTK_EIP(tsk)  ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)