Ver Fonte

[PATCH] fix alpha breakage

barrier.h uses barrier() in non-SMP case.  And doesn't include compiler.h.

Cc: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Ivan Kokshaysky há 19 anos atrás
pai
commit
63f324cf07
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      include/asm-alpha/barrier.h

+ 2 - 0
include/asm-alpha/barrier.h

@@ -1,6 +1,8 @@
 #ifndef __BARRIER_H
 #ifndef __BARRIER_H
 #define __BARRIER_H
 #define __BARRIER_H
 
 
+#include <asm/compiler.h>
+
 #define mb() \
 #define mb() \
 __asm__ __volatile__("mb": : :"memory")
 __asm__ __volatile__("mb": : :"memory")