* [uml-devel] [PATCH] UML: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.
@ 2008-03-15 16:57 Robert P. J. Day
2008-03-17 17:44 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2008-03-15 16:57 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Jeff Dike
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
not compile tested, it seems pretty straightforward.
diff --git a/arch/um/include/line.h b/arch/um/include/line.h
index 1223f2c..3791031 100644
--- a/arch/um/include/line.h
+++ b/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);
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [uml-devel] [PATCH] UML: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.
2008-03-15 16:57 [uml-devel] [PATCH] UML: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro Robert P. J. Day
@ 2008-03-17 17:44 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2008-03-17 17:44 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: user-mode-linux-devel
On Sat, Mar 15, 2008 at 12:57:29PM -0400, Robert P. J. Day wrote:
> not compile tested, it seems pretty straightforward.
Looks good to me...
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-17 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15 16:57 [uml-devel] [PATCH] UML: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro Robert P. J. Day
2008-03-17 17:44 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox