Skip to content

Commit a603a00

Browse files
committed
s390/uprobes: Use __forward_psw() instead of private implementation
With adjust_psw_addr() the uprobes code contains more or less a private __forward_psw() implementation. Switch it to use __forward_psw(), and remove adjust_psw_addr(). Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 37450e0 commit a603a00

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

arch/s390/kernel/uprobes.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ bool arch_uretprobe_is_alive(struct return_instance *ret, enum rp_check ctx,
161161

162162
/* Instruction Emulation */
163163

164-
static void adjust_psw_addr(psw_t *psw, unsigned long len)
165-
{
166-
psw->addr = __rewind_psw(*psw, -len);
167-
}
168-
169164
#define EMU_ILLEGAL_OP 1
170165
#define EMU_SPECIFICATION 2
171166
#define EMU_ADDRESSING 3
@@ -353,7 +348,7 @@ static void handle_insn_ril(struct arch_uprobe *auprobe, struct pt_regs *regs)
353348
}
354349
break;
355350
}
356-
adjust_psw_addr(&regs->psw, ilen);
351+
regs->psw.addr = __forward_psw(regs->psw, ilen);
357352
switch (rc) {
358353
case EMU_ILLEGAL_OP:
359354
regs->int_code = ilen << 16 | 0x0001;

0 commit comments

Comments
 (0)