[PATCH] PARISC: Replace deprecated SPIN_LOCK_UNLOCKED macro in semaphore.h.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>

---

  does this make sense?

diff --git a/include/asm-parisc/semaphore.h
b/include/asm-parisc/semaphore.h
index a16271c..3d5ee7a 100644
--- a/include/asm-parisc/semaphore.h
+++ b/include/asm-parisc/semaphore.h
@@ -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
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux