Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2f5b43a authored by Marc Zyngier's avatar Marc Zyngier Committed by Sami Tolvanen
Browse files

UPSTREAM: arm64: guard asm/assembler.h against multiple inclusions



asm/assembler.h lacks the usual guard against multiple inclusion,
leading to a compilation failure if it is accidentally included
twice.

Using the classic #ifndef/#define/#endif construct solves the issue.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>

Bug: 31432001
Change-Id: Ia931aa27b00fb9988014ed78963fcf243e186f39
(cherry picked from commit f3e39273e0a9a5c9dc78cd667ec3663e97e0e989)
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 1e0b1a0c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@
#error "Only include this from assembly code"
#endif

#ifndef __ASM_ASSEMBLER_H
#define __ASM_ASSEMBLER_H

#include <asm/ptrace.h>
#include <asm/thread_info.h>

@@ -155,3 +158,5 @@ lr .req x30 // link register
#endif
	orr	\rd, \lbits, \hbits, lsl #32
	.endm

#endif	/* __ASM_ASSEMBLER_H */