[PATCH 16/32] s390/cpu_mf: Convert inline assembly to EX_TABLE_INSN

From: Heiko Carstens

Date: Thu Oct 01 2026 - 06:45:41 EST


Convert all cpu_mf exception table entries to use EX_TABLE_INSN.
With EX_TABLE_INSN entries always point to the faulting instruction,
so duplicate entries are removed.

Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
---
arch/s390/include/asm/cpu_mf.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/arch/s390/include/asm/cpu_mf.h b/arch/s390/include/asm/cpu_mf.h
index 1798fbd59068..dd2991622e82 100644
--- a/arch/s390/include/asm/cpu_mf.h
+++ b/arch/s390/include/asm/cpu_mf.h
@@ -173,9 +173,9 @@ static inline int qctri(struct cpumf_ctr_info *info)

asm_inline volatile (
"0: qctri %1\n"
- "1: lhi %0,0\n"
- "2:\n"
- EX_TABLE(1b, 2b)
+ " lhi %0,0\n"
+ "1:\n"
+ EX_TABLE_INSN(0b, 1b)
: "+d" (rc), "=Q" (*info));
return rc;
}
@@ -257,9 +257,9 @@ static inline int qsi(struct hws_qsi_info_block *info)

asm volatile(
"0: qsi %1\n"
- "1: lhi %0,0\n"
- "2:\n"
- EX_TABLE(0b, 2b) EX_TABLE(1b, 2b)
+ " lhi %0,0\n"
+ "1:\n"
+ EX_TABLE_INSN(0b, 1b)
: "+d" (cc), "+Q" (*info));
return cc ? -EINVAL : 0;
}
@@ -272,10 +272,10 @@ static inline int lsctl(struct hws_lsctl_request_block *req)
exception = 1;
asm volatile(
"0: lsctl %[req]\n"
- "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)
: [req] "Q" (*req)
: CC_CLOBBER);
--
2.53.0