Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/math-emu: Rename frstor()

This is in the way of renaming the low level hardware accessors to match
the instruction name. Prepend it with FPU_ which is consistent vs. the
rest of the emulation code.

No functional change.

[ bp: Correct the Reported-by: ]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121454.111665161@linutronix.de

authored by

Thomas Gleixner and committed by
Borislav Petkov
872c65db 16dcf438

+3 -3
+1 -1
arch/x86/math-emu/fpu_proto.h
··· 144 144 extern int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d); 145 145 extern int FPU_round_to_int(FPU_REG *r, u_char tag); 146 146 extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s); 147 - extern void frstor(fpu_addr_modes addr_modes, u_char __user *data_address); 147 + extern void FPU_frstor(fpu_addr_modes addr_modes, u_char __user *data_address); 148 148 extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d); 149 149 extern void fsave(fpu_addr_modes addr_modes, u_char __user *data_address); 150 150 extern int FPU_tagof(FPU_REG *ptr);
+1 -1
arch/x86/math-emu/load_store.c
··· 240 240 fix-up operations. */ 241 241 return 1; 242 242 case 022: /* frstor m94/108byte */ 243 - frstor(addr_modes, (u_char __user *) data_address); 243 + FPU_frstor(addr_modes, (u_char __user *) data_address); 244 244 /* Ensure that the values just loaded are not changed by 245 245 fix-up operations. */ 246 246 return 1;
+1 -1
arch/x86/math-emu/reg_ld_str.c
··· 1117 1117 return s; 1118 1118 } 1119 1119 1120 - void frstor(fpu_addr_modes addr_modes, u_char __user *data_address) 1120 + void FPU_frstor(fpu_addr_modes addr_modes, u_char __user *data_address) 1121 1121 { 1122 1122 int i, regnr; 1123 1123 u_char __user *s = fldenv(addr_modes, data_address);