From: Uros Bizjak Date: Tue, 16 Dec 2025 10:51:20 +0000 (+0100) Subject: x86/asm: Use inout "+" asm onstraint modifiers in __iowrite32_copy() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09fbb775f1d01945119c4a0be4afacf30cc86796;p=thirdparty%2Fkernel%2Flinux.git x86/asm: Use inout "+" asm onstraint modifiers in __iowrite32_copy() Use inout "+" asm constraint modifiers to simplify asm operands. No functional changes intended. Signed-off-by: Uros Bizjak Signed-off-by: Borislav Petkov (AMD) Reviewed-by: H. Peter Anvin (Intel) Link: https://patch.msgid.link/20251216105134.248196-1-ubizjak@gmail.com --- diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index ca309a3227c78..2ea25745e0591 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -218,9 +218,8 @@ static inline void __iowrite32_copy(void __iomem *to, const void *from, size_t count) { asm volatile("rep movsl" - : "=&c"(count), "=&D"(to), "=&S"(from) - : "0"(count), "1"(to), "2"(from) - : "memory"); + : "+D"(to), "+S"(from), "+c"(count) + : : "memory"); } #define __iowrite32_copy __iowrite32_copy #endif