Skip to content

Commit 4dc1f31

Browse files
committed
x86: fix whitespace in runtime-const assembler output
The x86 user pointer validation changes made me look at compiler output a lot, and the wrong indentation for the ".popsection" in the generated assembler triggered me. Signed-off-by: Linus Torvalds <[email protected]>
1 parent 86e6b15 commit 4dc1f31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/include/asm/runtime-const.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
typeof(sym) __ret; \
77
asm_inline("mov %1,%0\n1:\n" \
88
".pushsection runtime_ptr_" #sym ",\"a\"\n\t" \
9-
".long 1b - %c2 - .\n\t" \
9+
".long 1b - %c2 - .\n" \
1010
".popsection" \
1111
:"=r" (__ret) \
1212
:"i" ((unsigned long)0x0123456789abcdefull), \
@@ -20,7 +20,7 @@
2020
typeof(0u+(val)) __ret = (val); \
2121
asm_inline("shrl $12,%k0\n1:\n" \
2222
".pushsection runtime_shift_" #sym ",\"a\"\n\t" \
23-
".long 1b - 1 - .\n\t" \
23+
".long 1b - 1 - .\n" \
2424
".popsection" \
2525
:"+r" (__ret)); \
2626
__ret; })

0 commit comments

Comments
 (0)