aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/process_32.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-06-16 00:54:51 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-07-27 14:31:09 -0400
commit3399d90ce63edf7439900db50b5c02aa822f190b (patch)
tree4d8cd697c02d065d3ce937b1972a9dab1f658d6b /arch/sh/kernel/process_32.c
parentarm64: switch to ->regset_get() (diff)
downloadlinux-dev-3399d90ce63edf7439900db50b5c02aa822f190b.tar.xz
linux-dev-3399d90ce63edf7439900db50b5c02aa822f190b.zip
sh: convert to ->regset_get()
NB: there's a direct call of fpregs_get() left in dump_fpu(). To be taken out once we convert ELF_FDPIC to use of regset. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sh/kernel/process_32.c')
-rw-r--r--arch/sh/kernel/process_32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c
index 456cc8d171f7..6ab397bc47ed 100644
--- a/arch/sh/kernel/process_32.c
+++ b/arch/sh/kernel/process_32.c
@@ -103,9 +103,8 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
fpvalid = !!tsk_used_math(tsk);
if (fpvalid)
- fpvalid = !fpregs_get(tsk, NULL, 0,
- sizeof(struct user_fpu_struct),
- fpu, NULL);
+ fpvalid = !fpregs_get(tsk, NULL,
+ (struct membuf){fpu, sizeof(*fpu)});
#endif
return fpvalid;