浏览代码

sparc: asm/atomic.h on 32bit should include asm/system.h for xchg

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stephen Rothwell 16 年之前
父节点
当前提交
c7cb1521b3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/sparc/include/asm/atomic_32.h

+ 2 - 0
arch/sparc/include/asm/atomic_32.h

@@ -15,6 +15,8 @@
 
 #ifdef __KERNEL__
 
+#include <asm/system.h>
+
 #define ATOMIC_INIT(i)  { (i) }
 
 extern int __atomic_add_return(int, atomic_t *);