patch-2.1.35 linux/include/asm-alpha/spinlock.h

Next file: linux/include/asm-i386/boot.h
Previous file: linux/include/asm-alpha/semaphore.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.34/linux/include/asm-alpha/spinlock.h linux/include/asm-alpha/spinlock.h
@@ -34,10 +34,12 @@
 typedef struct { unsigned long a[100]; } __dummy_lock_t;
 #define __dummy_lock(lock) (*(__dummy_lock_t *)(lock))
 
-#define spin_unlock(lock)				\
-	__asm__ __volatile__(				\
-	"mb; stq $31,%0"				\
-	:"=m" (__dummy_lock(lock)))
+static inline void spin_unlock(spinlock_t * lock)
+{
+	__asm__ __volatile__(
+	"mb; stq $31,%0"
+	:"=m" (__dummy_lock(lock)));
+}
 
 static inline void spin_lock(spinlock_t * lock)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov