[PATCH 30/32] s390/sclp: Convert inline assembly to EX_TABLE_INSN

From: Heiko Carstens

Date: Thu Oct 01 2026 - 06:53:05 EST


Convert the sclp_service_call exception table entries to use
EX_TABLE_INSN.

Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
---
drivers/s390/char/sclp.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h
index b31a680e0871..b91d31f8e0ef 100644
--- a/drivers/s390/char/sclp.h
+++ b/drivers/s390/char/sclp.h
@@ -320,11 +320,10 @@ static inline int sclp_service_call(sclp_cmdw_t command, void *sccb)
exception = 1;
asm_inline volatile(
"0: .insn rre,0xb2200000,%[cmd],%[sccb]\n" /* servc */
- "1: lhi %[exc],0\n"
- "2:\n"
+ " lhi %[exc],0\n"
+ "1:\n"
CC_IPM(cc)
- EX_TABLE(0b, 2b)
- EX_TABLE(1b, 2b)
+ EX_TABLE_INSN(0b, 1b)
: CC_OUT(cc, cc), [exc] "+d" (exception)
: [cmd] "d" (command), [sccb] "a" (__pa(sccb))
: CC_CLOBBER_LIST("memory"));
--
2.53.0