include/asm-x86/ptrace.h: checkpatch cleanups - formatting only

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Joe Perches 2008-03-23 01:03:17 -07:00 committed by Ingo Molnar
parent 708c566297
commit 72f74fa25a
1 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,8 @@ extern unsigned long
convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code); extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
int error_code);
#else #else
void signal_fault(struct pt_regs *regs, void __user *frame, char *where); void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
#endif #endif
@ -169,8 +170,8 @@ static inline int user_mode(struct pt_regs *regs)
static inline int user_mode_vm(struct pt_regs *regs) static inline int user_mode_vm(struct pt_regs *regs)
{ {
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
return ((regs->cs & SEGMENT_RPL_MASK) | return ((regs->cs & SEGMENT_RPL_MASK) | (regs->flags & VM_MASK)) >=
(regs->flags & VM_MASK)) >= USER_RPL; USER_RPL;
#else #else
return user_mode(regs); return user_mode(regs);
#endif #endif