From: Heiko Carstens Date: Fri, 10 Jan 2025 10:52:18 +0000 (+0100) Subject: s390/extable: Replace open-coded sfpc inline assembly with fpu_sfpc() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1d7a9719ba2dacac866bfa4fd17212d4dfc03bbe;p=users%2Fjedix%2Flinux-maple.git s390/extable: Replace open-coded sfpc inline assembly with fpu_sfpc() Use fpc_sfpc() instead of open-coding. Reviewed-by: Alexander Gordeev Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev --- diff --git a/arch/s390/mm/extable.c b/arch/s390/mm/extable.c index 812ec5be12916..6e9a5e366ff39 100644 --- a/arch/s390/mm/extable.c +++ b/arch/s390/mm/extable.c @@ -7,6 +7,7 @@ #include #include #include +#include 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; }