From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E8B6ADDEDD for ; Tue, 15 Jul 2008 19:17:25 +1000 (EST) Subject: Re: [RFC] [PATCH] task_pt_regs for powerpc systems From: Benjamin Herrenschmidt To: Srinivasa D S In-Reply-To: <200807151436.55912.srinivasa@in.ibm.com> References: <200807071952.27427.srinivasa@in.ibm.com> <200807141401.26917.srinivasa@in.ibm.com> <1216026417.7549.270.camel@pasglop> <200807151436.55912.srinivasa@in.ibm.com> Content-Type: text/plain Date: Tue, 15 Jul 2008 19:15:57 +1000 Message-Id: <1216113357.7740.95.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Paul Mackerras Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 > > > > 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 > > > --- > 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)