Skip to contentSkip to conversation

UML - use __SPIN_LOCK_UNLOCKED

PATCH In review Jeff Dike 1 participant 1 message Apr 25, 2008 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 15/19 UML - use __SPIN_LOCK_UNLOCKED

From: Robert P. J. Day <[email protected]>

Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.

---
 arch/um/include/line.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/um/include/line.h +2 -2
Index: linux-2.6.22/arch/um/include/line.h
===================================================================
@@ -58,11 +58,11 @@ struct line {
 };
 
 #define LINE_INIT(str, d) \
-	{ .count_lock =	SPIN_LOCK_UNLOCKED, \
+	{ .count_lock =	__SPIN_LOCK_UNLOCKED((str).count_lock), \
 	  .init_str =	str,	\
 	  .init_pri =	INIT_STATIC, \
 	  .valid =	1, \
-	  .lock =	SPIN_LOCK_UNLOCKED, \
+	  .lock =	__SPIN_LOCK_UNLOCKED((str).lock), \
 	  .driver =	d }
 
 extern void line_close(struct tty_struct *tty, struct file * filp);

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel