aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/ptrace.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 75bc744a6217..0fb53950da43 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -286,7 +286,6 @@ static void clear_single_step(struct task_struct *task)
286 clear_tsk_thread_flag(task, TIF_SINGLESTEP); 286 clear_tsk_thread_flag(task, TIF_SINGLESTEP);
287} 287}
288 288
289#ifdef CONFIG_PPC64
290static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr, 289static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,
291 unsigned long data) 290 unsigned long data)
292{ 291{
@@ -305,7 +304,6 @@ static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,
305 task->thread.dabr = data; 304 task->thread.dabr = data;
306 return 0; 305 return 0;
307} 306}
308#endif
309 307
310/* 308/*
311 * Called by kernel/ptrace.c when detaching.. 309 * Called by kernel/ptrace.c when detaching..
@@ -503,7 +501,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
503 break; 501 break;
504 } 502 }
505 503
506#ifdef CONFIG_PPC64
507 case PTRACE_GET_DEBUGREG: { 504 case PTRACE_GET_DEBUGREG: {
508 ret = -EINVAL; 505 ret = -EINVAL;
509 /* We only support one DABR and no IABRS at the moment */ 506 /* We only support one DABR and no IABRS at the moment */
@@ -517,7 +514,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
517 case PTRACE_SET_DEBUGREG: 514 case PTRACE_SET_DEBUGREG:
518 ret = ptrace_set_debugreg(child, addr, data); 515 ret = ptrace_set_debugreg(child, addr, data);
519 break; 516 break;
520#endif
521 517
522 case PTRACE_DETACH: 518 case PTRACE_DETACH:
523 ret = ptrace_detach(child, data); 519 ret = ptrace_detach(child, data);