Skip to contentSkip to conversation

fix alpha breakage

PATCH In review Al Viro 2 participants 2 messages Oct 26, 2005

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 fix alpha breakage

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

----

include/asm-alpha/barrier.h +2 -0
diff -urN RC14-rc5-git5-base/include/asm-alpha/barrier.h current/include/asm-alpha/barrier.h
@@ -1,6 +1,8 @@
 #ifndef __BARRIER_H
 #define __BARRIER_H
 
+#include <linux/compiler.h>
+
 #define mb() \
 __asm__ __volatile__("mb": : :"memory")
 
#1 lore raw
Quoted 2 lines · Al Viro

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

Thanks, but better use <asm-alpha/compiler.h> because of potential problems with the "inline" redefinition.

Ivan.

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