Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1403e7b1 authored by Michal Suchanek's avatar Michal Suchanek Committed by Greg Kroah-Hartman
Browse files

powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static



[ Upstream commit a26c4dbb3d9c1821cb0fc11cb2dbc32d5bf3463b ]

These functions are not used outside of sstep.c

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


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f4078ef3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -160,9 +160,4 @@ extern int emulate_step(struct pt_regs *regs, unsigned int 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);
+4 −8
Original line number Diff line number Diff line
@@ -663,7 +663,7 @@ 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,
static nokprobe_inline void emulate_vsx_load(struct instruction_op *op, union vsx_reg *reg,
					     const void *mem, bool rev)
{
	int size, read_size;
@@ -744,10 +744,8 @@ 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,
static nokprobe_inline void emulate_vsx_store(struct instruction_op *op, const union vsx_reg *reg,
					      void *mem, bool rev)
{
	int size, write_size;
@@ -820,8 +818,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,