From: Ingo Molnar Date: Tue, 28 Apr 2015 10:09:27 +0000 (+0200) Subject: x86/fpu: Rename save_user_xstate() to copy_fpregs_to_sigframe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a52af8b8adc498b3cccbc219ec997cad6cafb9c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86/fpu: Rename save_user_xstate() to copy_fpregs_to_sigframe() Move the naming in line with existing names, so that we now have: copy_fpregs_to_fpstate() copy_fpstate_to_sigframe() copy_fpregs_to_sigframe() ... where each function does what its name suggests. Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Dave Hansen Cc: Fenghua Yu Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index 5178158a03ff..28638820ed0e 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c @@ -257,7 +257,7 @@ static inline int save_xstate_epilog(void __user *buf, int ia32_frame) return err; } -static inline int save_user_xstate(struct xsave_struct __user *buf) +static inline int copy_fpregs_to_sigframe(struct xsave_struct __user *buf) { int err; @@ -312,7 +312,7 @@ int copy_fpstate_to_sigframe(void __user *buf, void __user *buf_fx, int size) if (user_has_fpu()) { /* Save the live register state to the user directly. */ - if (save_user_xstate(buf_fx)) + if (copy_fpregs_to_sigframe(buf_fx)) return -1; /* Update the thread's fxstate to save the fsave header. */ if (ia32_fxstate)