[PATCH 17/32] s390/cert_store: Convert inline assembly to EX_TABLE_INSN
From: Heiko Carstens
Date: Thu Oct 01 2026 - 06:55:22 EST
Convert the diag320 exception table entry to use EX_TABLE_INSN.
With EX_TABLE_INSN entries always point to the faulting instruction,
so nopr padding is no longer needed and removed.
Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
---
arch/s390/kernel/cert_store.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/s390/kernel/cert_store.c b/arch/s390/kernel/cert_store.c
index dc1992a675de..998f2da56175 100644
--- a/arch/s390/kernel/cert_store.c
+++ b/arch/s390/kernel/cert_store.c
@@ -236,9 +236,9 @@ static int __diag320(unsigned long subcode, void *addr)
union register_pair rp = { .even = (unsigned long)addr, };
asm_inline volatile(
- " diag %[rp],%[subcode],0x320\n"
- "0: nopr %%r7\n"
- EX_TABLE(0b, 0b)
+ "0: diag %[rp],%[subcode],0x320\n"
+ "1:\n"
+ EX_TABLE_INSN(0b, 1b)
: [rp] "+d" (rp.pair)
: [subcode] "d" (subcode)
: "cc", "memory");
--
2.53.0