summaryrefslogtreecommitdiff
path: root/arch/c6x/kernel/ptrace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-06-16 18:36:14 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-07-27 21:31:10 +0300
commitc7a0faa21e7e795778a978e8f894d3ae0fce60cf (patch)
treeec816562977744c4cbc83ce45f13d6a999116d30 /arch/c6x/kernel/ptrace.c
parent4ff8a356daafaafbf90141ee7a3b8fdc18e560a8 (diff)
downloadlinux-c7a0faa21e7e795778a978e8f894d3ae0fce60cf.tar.xz
c6x: switch to ->regset_get()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/c6x/kernel/ptrace.c')
-rw-r--r--arch/c6x/kernel/ptrace.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/c6x/kernel/ptrace.c b/arch/c6x/kernel/ptrace.c
index 67af1562da86..3cdaa8cf0ed6 100644
--- a/arch/c6x/kernel/ptrace.c
+++ b/arch/c6x/kernel/ptrace.c
@@ -57,14 +57,9 @@ static inline int put_reg(struct task_struct *task,
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 pt_regs *regs = task_pt_regs(target);
-
- return user_regset_copyout(&pos, &count, &kbuf, &ubuf,
- regs,
- 0, sizeof(*regs));
+ return membuf_write(&to, task_pt_regs(target), sizeof(struct pt_regs));
}
enum c6x_regset {
@@ -77,7 +72,7 @@ static const struct user_regset c6x_regsets[] = {
.n = ELF_NGREG,
.size = sizeof(u32),
.align = sizeof(u32),
- .get = gpr_get,
+ .regset_get = gpr_get,
},
};