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

powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static

These functions are not used outside of sstep.c

Fixes: 350779a29f11 ("powerpc: Handle most loads and stores in instruction emulation code")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241001130356.14664-1-msuchanek@suse.de

authored by

Michal Suchanek and committed by
Michael Ellerman
a26c4dbb d7a82238

+4 -13
-5
arch/powerpc/include/asm/sstep.h
··· 173 173 */ 174 174 extern int emulate_loadstore(struct pt_regs *regs, struct instruction_op *op); 175 175 176 - extern void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg, 177 - const void *mem, bool cross_endian); 178 - extern void emulate_vsx_store(struct instruction_op *op, 179 - const union vsx_reg *reg, void *mem, 180 - bool cross_endian); 181 176 extern int emulate_dcbz(unsigned long ea, struct pt_regs *regs);
+4 -8
arch/powerpc/lib/sstep.c
··· 780 780 #endif /* __powerpc64 */ 781 781 782 782 #ifdef CONFIG_VSX 783 - void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg, 784 - const void *mem, bool rev) 783 + static nokprobe_inline void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg, 784 + const void *mem, bool rev) 785 785 { 786 786 int size, read_size; 787 787 int i, j; ··· 863 863 break; 864 864 } 865 865 } 866 - EXPORT_SYMBOL_GPL(emulate_vsx_load); 867 - NOKPROBE_SYMBOL(emulate_vsx_load); 868 866 869 - void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg, 870 - void *mem, bool rev) 867 + static nokprobe_inline void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg, 868 + void *mem, bool rev) 871 869 { 872 870 int size, write_size; 873 871 int i, j; ··· 953 955 break; 954 956 } 955 957 } 956 - EXPORT_SYMBOL_GPL(emulate_vsx_store); 957 - NOKPROBE_SYMBOL(emulate_vsx_store); 958 958 959 959 static nokprobe_inline int do_vsx_load(struct instruction_op *op, 960 960 unsigned long ea, struct pt_regs *regs,