powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static
authorMichal Suchanek <msuchanek@suse.de>
Tue, 1 Oct 2024 13:03:49 +0000 (15:03 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Nov 2024 03:17:36 +0000 (14:17 +1100)
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
arch/powerpc/include/asm/sstep.h
arch/powerpc/lib/sstep.c

index 50950de..e3d0e71 100644 (file)
@@ -173,9 +173,4 @@ int emulate_step(struct pt_regs *regs, ppc_inst_t instr);
  */
 extern int emulate_loadstore(struct pt_regs *regs, struct instruction_op *op);
 
-extern void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
-                            const void *mem, bool cross_endian);
-extern void emulate_vsx_store(struct instruction_op *op,
-                             const union vsx_reg *reg, void *mem,
-                             bool cross_endian);
 extern int emulate_dcbz(unsigned long ea, struct pt_regs *regs);
index e65f3fb..ac3ee19 100644 (file)
@@ -780,8 +780,8 @@ static nokprobe_inline int emulate_stq(struct pt_regs *regs, unsigned long ea,
 #endif /* __powerpc64 */
 
 #ifdef CONFIG_VSX
-void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
-                     const void *mem, bool rev)
+static nokprobe_inline void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
+                                            const void *mem, bool rev)
 {
        int size, read_size;
        int i, j;
@@ -863,11 +863,9 @@ void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
                break;
        }
 }
-EXPORT_SYMBOL_GPL(emulate_vsx_load);
-NOKPROBE_SYMBOL(emulate_vsx_load);
 
-void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg,
-                      void *mem, bool rev)
+static nokprobe_inline void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg,
+                                             void *mem, bool rev)
 {
        int size, write_size;
        int i, j;
@@ -955,8 +953,6 @@ void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg,
                break;
        }
 }
-EXPORT_SYMBOL_GPL(emulate_vsx_store);
-NOKPROBE_SYMBOL(emulate_vsx_store);
 
 static nokprobe_inline int do_vsx_load(struct instruction_op *op,
                                       unsigned long ea, struct pt_regs *regs,