[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1606449271-13922-1-git-send-email-tangyouling@loongson.cn>
Date: Fri, 27 Nov 2020 11:54:31 +0800
From: Youling Tang <tangyouling@...ngson.cn>
To: Oleg Nesterov <oleg@...hat.com>
Cc: linux-alpha@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] alpha: ptrace generic requests
This removes duplicated code by calling the generic ptrace_request
function for the things they already handle.
Signed-off-by: Youling Tang <tangyouling@...ngson.cn>
---
arch/alpha/kernel/ptrace.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/alpha/kernel/ptrace.c b/arch/alpha/kernel/ptrace.c
index 8c43212..eb4d566 100644
--- a/arch/alpha/kernel/ptrace.c
+++ b/arch/alpha/kernel/ptrace.c
@@ -301,12 +301,6 @@ long arch_ptrace(struct task_struct *child, long request,
DBG(DBG_MEM, ("peek $%lu->%#lx\n", addr, ret));
break;
- /* When I and D space are separate, this will have to be fixed. */
- case PTRACE_POKETEXT: /* write the word at location addr. */
- case PTRACE_POKEDATA:
- ret = generic_ptrace_pokedata(child, addr, data);
- break;
-
case PTRACE_POKEUSR: /* write the specified register */
DBG(DBG_MEM, ("poke $%lu<-%#lx\n", addr, data));
ret = put_reg(child, addr, data);
--
2.1.0
Powered by blists - more mailing lists