Skip to contentSkip to conversation

PARISC: Replace deprecated SPIN_LOCK_UNLOCKED macro in semaphore.h.

PATCH New Robert P. J. Day 1 participant 1 message Mar 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PARISC: Replace deprecated SPIN_LOCK_UNLOCKED macro in semaphore.h.

---

does this make sense?

(quoted diff) +0 -0

b/include/asm-parisc/semaphore.h
index a16271c..3d5ee7a 100644

include/asm-parisc/semaphore.h +1 -1
@@ -44,7 +44,7 @@ struct semaphore {
 
 #define __SEMAPHORE_INITIALIZER(name, n)				\
 {									\
-	.sentry		= SPIN_LOCK_UNLOCKED,				\
+	.sentry		= __SPIN_LOCK_UNLOCKED(name),			\
 	.count		= n,						\
 	.wait		= __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)	\
 }

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================