Skip to content

Commit 06c2aac

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fix from Catalin Marinas: "Fix kernel compilation when using the LLVM integrated assembly. A recent commit (2decad9, "arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically") broke the kernel build when using the LLVM integrated assembly (only noticeable with clang-12 as MTE is not supported by earlier versions and the code in question not compiled). The Fixes: tag in the commit refers to the original patch introducing subsections for the alternative code sequences" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: alternatives: Move length validation in alternative_{insn, endif}
2 parents 2f7b98d + 22315a2 commit 06c2aac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm64/include/asm/alternative-macros.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@
9797
.popsection
9898
.subsection 1
9999
663: \insn2
100-
664: .previous
101-
.org . - (664b-663b) + (662b-661b)
100+
664: .org . - (664b-663b) + (662b-661b)
102101
.org . - (662b-661b) + (664b-663b)
102+
.previous
103103
.endif
104104
.endm
105105

@@ -169,11 +169,11 @@
169169
*/
170170
.macro alternative_endif
171171
664:
172+
.org . - (664b-663b) + (662b-661b)
173+
.org . - (662b-661b) + (664b-663b)
172174
.if .Lasm_alt_mode==0
173175
.previous
174176
.endif
175-
.org . - (664b-663b) + (662b-661b)
176-
.org . - (662b-661b) + (664b-663b)
177177
.endm
178178

179179
/*

0 commit comments

Comments
 (0)