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

Commit a96ab039 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

ARM: gic: add __ASSEMBLY__ guard to C definitions



The GIC include file being used by some of the KVM assembly code,
wrap the C definitions with a #ifdef __ASSEMBLY__ guard.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent fdf77a72
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -57,6 +57,8 @@
#define GICH_MISR_EOI			(1 << 0)
#define GICH_MISR_U			(1 << 1)

#ifndef __ASSEMBLY__

struct device_node;

extern struct irq_chip gic_arch_extn;
@@ -72,4 +74,6 @@ static inline void gic_init(unsigned int nr, int start,
	gic_init_bases(nr, start, dist, cpu, 0, NULL);
}

#endif /* __ASSEMBLY */

#endif