summaryrefslogtreecommitdiff
path: root/arch/nds32
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-06-16 21:30:59 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-07-27 21:31:11 +0300
commit1b5b456e39a0c9271575746197dd463be27463f6 (patch)
tree2f7c904d5a99c11b45c6d71ae72eca83205cd990 /arch/nds32
parent6bda7688878b3e7bc328ae26e7df4f4298c63dc9 (diff)
downloadlinux-1b5b456e39a0c9271575746197dd463be27463f6.tar.xz
nds32: switch to ->regset_get()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/nds32')
-rw-r--r--arch/nds32/kernel/ptrace.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/nds32/kernel/ptrace.c b/arch/nds32/kernel/ptrace.c
index eaaf7a999b20..d0eda870fbc2 100644
--- a/arch/nds32/kernel/ptrace.c
+++ b/arch/nds32/kernel/ptrace.c
@@ -13,11 +13,10 @@ enum nds32_regset {
static int gpr_get(struct task_struct *target,
const struct user_regset *regset,
- unsigned int pos, unsigned int count,
- void *kbuf, void __user * ubuf)
+ struct membuf to)
{
- struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs;
- return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, -1);
+ return membuf_write(&to, &task_pt_regs(target)->user_regs,
+ sizeof(struct user_pt_regs));
}
static int gpr_set(struct task_struct *target, const struct user_regset *regset,
@@ -41,7 +40,7 @@ static const struct user_regset nds32_regsets[] = {
.n = sizeof(struct user_pt_regs) / sizeof(u32),
.size = sizeof(elf_greg_t),
.align = sizeof(elf_greg_t),
- .get = gpr_get,
+ .regset_get = gpr_get,
.set = gpr_set}
};