Skip to content

Commit

Permalink
ARM: gic: add __ASSEMBLY__ guard to C definitions
Browse files Browse the repository at this point in the history
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: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
Marc Zyngier committed Feb 11, 2013
1 parent fdf77a7 commit a96ab03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/irqchip/arm-gic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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

0 comments on commit a96ab03

Please sign in to comment.