linux-mips
[Top] [All Lists]

Re: [2.6 patch] asm/ptrace.h userspace headers cleanup

To: Adrian Bunk <bunk@kernel.org>
Subject: Re: [2.6 patch] asm/ptrace.h userspace headers cleanup
From: Russell King <rmk+lkml@arm.linux.org.uk>
Date: Wed, 25 Jun 2008 08:46:02 +0100
Cc: Roland McGrath <roland@redhat.com>, linux-kernel@vger.kernel.org, cooloney@kernel.org, dev-etrax@axis.com, dhowells@redhat.com, gerg@uclinux.org, yasutake.koichi@jp.panasonic.com, linux-parisc@vger.kernel.org, paulus@samba.org, linuxppc-dev@ozlabs.org, linux-sh@vger.kernel.org, chris@zankel.net, linux-mips@linux-mips.org, ysato@users.sourceforge.jp, Andrew Morton <akpm@linux-foundation.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.linux.org.uk; s=caramon; h=Date:From:To:Cc:Subject: Message-ID:References:Mime-Version:Content-Type:In-Reply-To: Sender; bh=DPZoLC/PIMX8PnYok//2Q0L7BgRGOutqmDCjPMXiQT8=; b=Hg+sj vKffkgaXTO3ymvSPiz2TgC4rH6ierWyf0tauevjOOL8QxssO/blSiZwBBfug/v9e BkCRJ7mAiPAuu1V/LcyDZQEbPRmWTn7O8HfL2842KGj5Gherc21ST5zUPQqUX9tP GW6bqemuKYQFW50e+w8kF8X337Cirb1lZcEtrc=
In-reply-to: <20080623174809.GE4756@cs181140183.pp.htv.fi>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20080623174809.GE4756@cs181140183.pp.htv.fi>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.1i
On Mon, Jun 23, 2008 at 08:48:09PM +0300, Adrian Bunk wrote:
> diff --git a/include/asm-arm/ptrace.h b/include/asm-arm/ptrace.h
> index 7aaa206..8382b75 100644
> --- a/include/asm-arm/ptrace.h
> +++ b/include/asm-arm/ptrace.h
> @@ -139,8 +139,6 @@ static inline int valid_user_regs(struct pt_regs *regs)
>       return 0;
>  }
>  
> -#endif       /* __KERNEL__ */
> -
>  #define pc_pointer(v) \
>       ((v) & ~PCMASK)
>  
> @@ -153,10 +151,10 @@ extern unsigned long profile_pc(struct pt_regs *regs);
>  #define profile_pc(regs) instruction_pointer(regs)
>  #endif
>  
> -#ifdef __KERNEL__
>  #define predicate(x)         ((x) & 0xf0000000)
>  #define PREDICATE_ALWAYS     0xe0000000
> -#endif
> +
> +#endif /* __KERNEL__ */
>  
>  #endif /* __ASSEMBLY__ */
>  

Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

<Prev in Thread] Current Thread [Next in Thread>