lkml.org 
[lkml]   [2009]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 02/17] arm: arch_ptrace indentation
Date
This changes the arch_ptrace() indentation to match the standard style.
No change but the whitespace.

Signed-off-by: Roland McGrath <roland@redhat.com>
---
arch/arm/kernel/ptrace.c | 116 +++++++++++++++++++++++-----------------------
1 files changed, 58 insertions(+), 58 deletions(-)
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index 825b7ab..93d7822 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -706,13 +706,13 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
int ret;

switch (request) {
- case PTRACE_PEEKUSR:
- ret = ptrace_read_user(child, addr, (unsigned long __user *)data);
- break;
+ case PTRACE_PEEKUSR:
+ ret = ptrace_read_user(child, addr, (unsigned long __user *)data);
+ break;

- case PTRACE_POKEUSR:
- ret = ptrace_write_user(child, addr, data);
- break;
+ case PTRACE_POKEUSR:
+ ret = ptrace_write_user(child, addr, data);
+ break;

/*
* The generic code handles these mostly, but we have to
@@ -723,11 +723,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
* come back through here or PTRACE_SINGLESTEP again
* before it matters.
*/
- case PTRACE_SYSCALL:
- case PTRACE_CONT:
- case PTRACE_KILL:
- single_step_disable(child);
- goto common;
+ case PTRACE_SYSCALL:
+ case PTRACE_CONT:
+ case PTRACE_KILL:
+ single_step_disable(child);
+ goto common;

/*
* After we set up single-step state, the generic
@@ -735,71 +735,71 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
* Note as above we don't bother with checking early
* for the error case.
*/
- case PTRACE_SINGLESTEP:
- single_step_enable(child);
- request = PTRACE_CONT;
- goto common;
+ case PTRACE_SINGLESTEP:
+ single_step_enable(child);
+ request = PTRACE_CONT;
+ goto common;

- case PTRACE_GETREGS:
- ret = ptrace_getregs(child, (void __user *)data);
- break;
+ case PTRACE_GETREGS:
+ ret = ptrace_getregs(child, (void __user *)data);
+ break;

- case PTRACE_SETREGS:
- ret = ptrace_setregs(child, (void __user *)data);
- break;
+ case PTRACE_SETREGS:
+ ret = ptrace_setregs(child, (void __user *)data);
+ break;

- case PTRACE_GETFPREGS:
- ret = ptrace_getfpregs(child, (void __user *)data);
- break;
-
- case PTRACE_SETFPREGS:
- ret = ptrace_setfpregs(child, (void __user *)data);
- break;
+ case PTRACE_GETFPREGS:
+ ret = ptrace_getfpregs(child, (void __user *)data);
+ break;
+
+ case PTRACE_SETFPREGS:
+ ret = ptrace_setfpregs(child, (void __user *)data);
+ break;

#ifdef CONFIG_IWMMXT
- case PTRACE_GETWMMXREGS:
- ret = ptrace_getwmmxregs(child, (void __user *)data);
- break;
+ case PTRACE_GETWMMXREGS:
+ ret = ptrace_getwmmxregs(child, (void __user *)data);
+ break;

- case PTRACE_SETWMMXREGS:
- ret = ptrace_setwmmxregs(child, (void __user *)data);
- break;
+ case PTRACE_SETWMMXREGS:
+ ret = ptrace_setwmmxregs(child, (void __user *)data);
+ break;
#endif

- case PTRACE_GET_THREAD_AREA:
- ret = put_user(task_thread_info(child)->tp_value,
- (unsigned long __user *) data);
- break;
+ case PTRACE_GET_THREAD_AREA:
+ ret = put_user(task_thread_info(child)->tp_value,
+ (unsigned long __user *) data);
+ break;

- case PTRACE_SET_SYSCALL:
- task_thread_info(child)->syscall = data;
- ret = 0;
- break;
+ case PTRACE_SET_SYSCALL:
+ task_thread_info(child)->syscall = data;
+ ret = 0;
+ break;

#ifdef CONFIG_CRUNCH
- case PTRACE_GETCRUNCHREGS:
- ret = ptrace_getcrunchregs(child, (void __user *)data);
- break;
+ case PTRACE_GETCRUNCHREGS:
+ ret = ptrace_getcrunchregs(child, (void __user *)data);
+ break;

- case PTRACE_SETCRUNCHREGS:
- ret = ptrace_setcrunchregs(child, (void __user *)data);
- break;
+ case PTRACE_SETCRUNCHREGS:
+ ret = ptrace_setcrunchregs(child, (void __user *)data);
+ break;
#endif

#ifdef CONFIG_VFP
- case PTRACE_GETVFPREGS:
- ret = ptrace_getvfpregs(child, (void __user *)data);
- break;
+ case PTRACE_GETVFPREGS:
+ ret = ptrace_getvfpregs(child, (void __user *)data);
+ break;

- case PTRACE_SETVFPREGS:
- ret = ptrace_setvfpregs(child, (void __user *)data);
- break;
+ case PTRACE_SETVFPREGS:
+ ret = ptrace_setvfpregs(child, (void __user *)data);
+ break;
#endif

- default:
- common:
- ret = ptrace_request(child, request, addr, data);
- break;
+ default:
+ common:
+ ret = ptrace_request(child, request, addr, data);
+ break;
}

return ret;

\
 
 \ /
  Last update: 2009-04-25 02:11    [from the cache]
©2003-2011 Jasper Spaans