mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-27 04:46:12 -04: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 <ubizjak@gmail.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: H. Peter Anvin (Intel) <hpa@zytor.com> Link: https://patch.msgid.link/20251216105134.248196-1-ubizjak@gmail.com
This commit is contained in:
committed by
Borislav Petkov (AMD)
parent
11439c4635
commit
09fbb775f1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user