提交 b3319f50 编写于 作者: R Roman Zippel 提交者: Linus Torvalds

[PATCH] m68k: indent sys_ptrace

This reformats and properly indents sys_ptrace (only whitespace changes).
Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c3c433e4
...@@ -95,7 +95,7 @@ static inline int put_reg(struct task_struct *task, int regno, ...@@ -95,7 +95,7 @@ static inline int put_reg(struct task_struct *task, int regno,
if (regno == PT_USP) if (regno == PT_USP)
addr = &task->thread.usp; addr = &task->thread.usp;
else if (regno < sizeof(regoff)/sizeof(regoff[0])) else if (regno < sizeof(regoff)/sizeof(regoff[0]))
addr = (unsigned long *) (task->thread.esp0 + regoff[regno]); addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
else else
return -1; return -1;
*addr = data; *addr = data;
...@@ -166,7 +166,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data) ...@@ -166,7 +166,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret = -EIO; ret = -EIO;
if (copied != sizeof(tmp)) if (copied != sizeof(tmp))
break; break;
ret = put_user(tmp,(unsigned long *) data); ret = put_user(tmp, (unsigned long *)data);
break; break;
} }
...@@ -198,7 +198,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data) ...@@ -198,7 +198,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
#endif #endif
} else } else
break; break;
ret = put_user(tmp,(unsigned long *) data); ret = put_user(tmp, (unsigned long *)data);
break; break;
} }
...@@ -230,8 +230,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data) ...@@ -230,8 +230,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret = 0; ret = 0;
break; break;
} }
if (addr >= 21 && addr < 48) if (addr >= 21 && addr < 48) {
{
#ifdef CONFIG_M68KFPU_EMU #ifdef CONFIG_M68KFPU_EMU
/* Convert long double format /* Convert long double format
* into internal fpu reg representation * into internal fpu reg representation
...@@ -269,7 +268,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data) ...@@ -269,7 +268,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
break; break;
} }
/* /*
* make the child exit. Best I can do is send it a sigkill. * make the child exit. Best I can do is send it a sigkill.
* perhaps it should be put in the status that it wants to * perhaps it should be put in the status that it wants to
* exit. * exit.
...@@ -318,7 +317,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data) ...@@ -318,7 +317,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
tmp = get_reg(child, i); tmp = get_reg(child, i);
if (i == PT_SR) if (i == PT_SR)
tmp >>= 16; tmp >>= 16;
if (put_user(tmp, (unsigned long *) data)) { if (put_user(tmp, (unsigned long *)data)) {
ret = -EFAULT; ret = -EFAULT;
break; break;
} }
...@@ -332,7 +331,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data) ...@@ -332,7 +331,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
int i; int i;
unsigned long tmp; unsigned long tmp;
for (i = 0; i < 19; i++) { for (i = 0; i < 19; i++) {
if (get_user(tmp, (unsigned long *) data)) { if (get_user(tmp, (unsigned long *)data)) {
ret = -EFAULT; ret = -EFAULT;
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册