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

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 -6
+1 -6
arch/s390/kernel/uprobes.c
··· 161 161 162 162 /* Instruction Emulation */ 163 163 164 - static void adjust_psw_addr(psw_t *psw, unsigned long len) 165 - { 166 - psw->addr = __rewind_psw(*psw, -len); 167 - } 168 - 169 164 #define EMU_ILLEGAL_OP 1 170 165 #define EMU_SPECIFICATION 2 171 166 #define EMU_ADDRESSING 3 ··· 348 353 } 349 354 break; 350 355 } 351 - adjust_psw_addr(&regs->psw, ilen); 356 + regs->psw.addr = __forward_psw(regs->psw, ilen); 352 357 switch (rc) { 353 358 case EMU_ILLEGAL_OP: 354 359 regs->int_code = ilen << 16 | 0x0001;