Skip to content

Commit 3bf7edc

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 build fix from Catalin Marinas: "Fix kernel build with clang LTO after the inclusion of the Spectre BHB arm64 mitigations" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: Do not include __READ_ONCE() block in assembly files
2 parents 36168e3 + 52c9f93 commit 3bf7edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/include/asm/rwonce.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef __ASM_RWONCE_H
66
#define __ASM_RWONCE_H
77

8-
#ifdef CONFIG_LTO
8+
#if defined(CONFIG_LTO) && !defined(__ASSEMBLY__)
99

1010
#include <linux/compiler_types.h>
1111
#include <asm/alternative-macros.h>
@@ -66,7 +66,7 @@
6666
})
6767

6868
#endif /* !BUILD_VDSO */
69-
#endif /* CONFIG_LTO */
69+
#endif /* CONFIG_LTO && !__ASSEMBLY__ */
7070

7171
#include <asm-generic/rwonce.h>
7272

0 commit comments

Comments
 (0)