patch-2.2.4 linux/include/asm-sparc64/spinlock.h

Next file: linux/include/asm-sparc64/sysio.h
Previous file: linux/include/asm-sparc64/softirq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/include/asm-sparc64/spinlock.h linux/include/asm-sparc64/spinlock.h
@@ -149,9 +149,9 @@
 	: "memory");
 }
 
-#define spin_lock_irqsave(lock, flags)				\
-do {	register spinlock_t *lp asm("g1");			\
-	lp = lock;						\
+#define spin_lock_irqsave(__lock, flags)			\
+do {	register spinlock_t *__lp asm("g1");			\
+	__lp = (__lock);					\
 	__asm__ __volatile__(					\
 	"\n	rdpr		%%pil, %0\n"			\
 	"	wrpr		%%g0, 15, %%pil\n"		\
@@ -165,7 +165,7 @@
 	"	b,a,pt		%%xcc, 1b\n"			\
 	"	.previous\n"					\
 	: "=&r" (flags)						\
-	: "r" (lp)						\
+	: "r" (__lp)						\
 	: "g7", "memory");					\
 } while(0)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)