[PATCH 03/20] x86/mm: Use named asm operands in task_size_max()
From: Josh Poimboeuf
Date: Fri Mar 14 2025 - 17:49:21 EST
Use named operands in preparation for removing the operand numbering
restrictions in alternative_io().
Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
arch/x86/include/asm/page_64.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h
index b5279f5d5601..db3003acd41e 100644
--- a/arch/x86/include/asm/page_64.h
+++ b/arch/x86/include/asm/page_64.h
@@ -85,9 +85,9 @@ static __always_inline unsigned long task_size_max(void)
{
unsigned long ret;
- alternative_io("movq %[small],%0","movq %[large],%0",
- X86_FEATURE_LA57,
- "=r" (ret),
+ alternative_io("movq %[small], %[ret]",
+ "movq %[large], %[ret]", X86_FEATURE_LA57,
+ [ret] "=r" (ret),
[small] "i" ((1ul << 47)-PAGE_SIZE),
[large] "i" ((1ul << 56)-PAGE_SIZE));
--
2.48.1