]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/extable: Replace open-coded sfpc inline assembly with fpu_sfpc()
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 10 Jan 2025 10:52:18 +0000 (11:52 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:24:04 +0000 (17:24 +0100)
Use fpc_sfpc() instead of open-coding.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/mm/extable.c

index 812ec5be1291697262aea07d4262175e4346ed29..6e9a5e366ff39c05b3d310e718f8a718baf1552d 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/panic.h>
 #include <asm/asm-extable.h>
 #include <asm/extable.h>
+#include <asm/fpu.h>
 
 const struct exception_table_entry *s390_search_extables(unsigned long addr)
 {
@@ -79,7 +80,7 @@ static bool ex_handler_zeropad(const struct exception_table_entry *ex, struct pt
 
 static bool ex_handler_fpc(const struct exception_table_entry *ex, struct pt_regs *regs)
 {
-       asm volatile("sfpc      %[val]\n" : : [val] "d" (0));
+       fpu_sfpc(0);
        regs->psw.addr = extable_fixup(ex);
        return true;
 }