Skip to content

Commit

Permalink
X86_32: declare pt_regs_access as unsigned long
Browse files Browse the repository at this point in the history
Fixed pt_regs_access to unsigned long as per X86_64

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
  • Loading branch information
Jaswinder Singh committed Jul 25, 2008
1 parent 461d159 commit 4fe702c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fe702c

Please sign in to comment.