c6x: switch to ->regset_get()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Jun 2020 15:36:14 +0000 (11:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Jul 2020 18:31:10 +0000 (14:31 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/c6x/kernel/ptrace.c

index 67af156..3cdaa8c 100644 (file)
@@ -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,
        },
 };