summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ptrace.c
diff options
context:
space:
mode:
authorJaswinder Singh <jaswinder@infradead.org>2008-07-25 10:19:27 +0530
committerJaswinder Singh <jaswinder@infradead.org>2008-07-25 11:56:15 +0530
commit4fe702c7e401f912c0edd294af6e37c02f451bbb (patch)
treefb2bce0b2e50b94e5a9ba5b018c9dc6fbec81243 /arch/x86/kernel/ptrace.c
parent461d159694d683c9e43ead07720a3a0f17f6f060 (diff)
downloadop-kernel-dev-4fe702c7e401f912c0edd294af6e37c02f451bbb.zip
op-kernel-dev-4fe702c7e401f912c0edd294af6e37c02f451bbb.tar.gz
X86_32: declare pt_regs_access as unsigned long
Fixed pt_regs_access to unsigned long as per X86_64 Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r--arch/x86/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index e37dccc..fc3e8dc 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -69,7 +69,7 @@ static inline bool invalid_selector(u16 value)
#define FLAG_MASK FLAG_MASK_32
-static long *pt_regs_access(struct pt_regs *regs, unsigned long regno)
+static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long regno)
{
BUILD_BUG_ON(offsetof(struct pt_regs, bx) != 0);
regno >>= 2;
OpenPOWER on IntegriCloud