x86/asm: Use inout "+" asm onstraint modifiers in __iowrite32_copy()
PATCH RESEND 1/1 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 <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
--- arch/x86/include/asm/io.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/x86/include/asm/io.h +2 -3
@@ -218,9 +218,8 @@ static inline void __iowrite32_copy(void __iomem *to, const void *from, size_t count) { asmvolatile ("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
Signature · 1 line
2.52.0
The following commit has been merged into the x86/cleanups branch of tip:
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 09fbb775f1d01945119c4a0be4afacf30cc86796 Gitweb: https://git.kernel.org/tip/09fbb775f1d01945119c4a0be4afacf30cc86796 Author: Uros Bizjak <[email protected]> AuthorDate: Tue, 16 Dec 2025 11:51:20 +01:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Sat, 07 Mar 2026 15:46:10 +01:00
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 <[email protected]>
Signed-off-by Borislav Petkov (AMD) <[email protected]>
Reviewed-by H. Peter Anvin (Intel) <[email protected]>
--- arch/x86/include/asm/io.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/x86/include/asm/io.h +2 -3
@@ -218,9 +218,8 @@ static inline void __iowrite32_copy(void __iomem *to, const void *from, size_t count) { asmvolatile ("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