Skip to content

Commit a26c4db

Browse files
hramrachmpe
authored andcommitted
powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static
These functions are not used outside of sstep.c Fixes: 350779a ("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
1 parent d7a8223 commit a26c4db

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

arch/powerpc/include/asm/sstep.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,4 @@ int emulate_step(struct pt_regs *regs, ppc_inst_t instr);
173173
*/
174174
extern int emulate_loadstore(struct pt_regs *regs, struct instruction_op *op);
175175

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);
181176
extern int emulate_dcbz(unsigned long ea, struct pt_regs *regs);

arch/powerpc/lib/sstep.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,8 @@ static nokprobe_inline int emulate_stq(struct pt_regs *regs, unsigned long ea,
780780
#endif /* __powerpc64 */
781781

782782
#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)
785785
{
786786
int size, read_size;
787787
int i, j;
@@ -863,11 +863,9 @@ void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
863863
break;
864864
}
865865
}
866-
EXPORT_SYMBOL_GPL(emulate_vsx_load);
867-
NOKPROBE_SYMBOL(emulate_vsx_load);
868866

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)
871869
{
872870
int size, write_size;
873871
int i, j;
@@ -955,8 +953,6 @@ void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg,
955953
break;
956954
}
957955
}
958-
EXPORT_SYMBOL_GPL(emulate_vsx_store);
959-
NOKPROBE_SYMBOL(emulate_vsx_store);
960956

961957
static nokprobe_inline int do_vsx_load(struct instruction_op *op,
962958
unsigned long ea, struct pt_regs *regs,

0 commit comments

Comments
 (0)