浏览代码

[ARM] Fix missing compiler.h include

asm/mach/arch.h introduced a __deprecated, but didn't include compiler.h,
causing:

In file included from arch/arm/mach-at91rm9200/devices.c:13:
include/asm/mach/arch.h:23: warning: no semicolon at end of struct or union
include/asm/mach/arch.h:23: error: syntax error before 'phys_ram'
include/asm/mach/arch.h:34: error: syntax error before ':' token
include/asm/mach/arch.h:35: error: syntax error before ':' token
include/asm/mach/arch.h:36: error: syntax error before ':' token
include/asm/mach/arch.h:37: error: syntax error before ':' token
include/asm/mach/arch.h:45: error: syntax error before '}' token

Add the necessary include.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 19 年之前
父节点
当前提交
ef0498a7bf
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/asm-arm/mach/arch.h

+ 2 - 0
include/asm-arm/mach/arch.h

@@ -10,6 +10,8 @@
 
 
 #ifndef __ASSEMBLY__
 #ifndef __ASSEMBLY__
 
 
+#include <linux/compiler.h>
+
 struct tag;
 struct tag;
 struct meminfo;
 struct meminfo;
 struct sys_timer;
 struct sys_timer;