diff options
author | Jaswinder Singh <jaswinder@infradead.org> | 2008-07-25 00:49:27 -0400 |
---|---|---|
committer | Jaswinder Singh <jaswinder@infradead.org> | 2008-07-25 02:26:15 -0400 |
commit | 4fe702c7e401f912c0edd294af6e37c02f451bbb (patch) | |
tree | fb2bce0b2e50b94e5a9ba5b018c9dc6fbec81243 /arch/x86/kernel/ptrace.c | |
parent | 461d159694d683c9e43ead07720a3a0f17f6f060 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index e37dccce85db..fc3e8dcd9da6 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -69,7 +69,7 @@ static inline bool invalid_selector(u16 value) | |||
69 | 69 | ||
70 | #define FLAG_MASK FLAG_MASK_32 | 70 | #define FLAG_MASK FLAG_MASK_32 |
71 | 71 | ||
72 | static long *pt_regs_access(struct pt_regs *regs, unsigned long regno) | 72 | static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long regno) |
73 | { | 73 | { |
74 | BUILD_BUG_ON(offsetof(struct pt_regs, bx) != 0); | 74 | BUILD_BUG_ON(offsetof(struct pt_regs, bx) != 0); |
75 | regno >>= 2; | 75 | regno >>= 2; |