Messages in this thread Patch in this message | | | Date | Fri, 25 Apr 2008 13:56:15 -0400 | From | Jeff Dike <> | Subject | [PATCH 15/19] UML - use __SPIN_LOCK_UNLOCKED |
| |
From: Robert P. J. Day <rpjday@crashcourse.ca>
Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Jeff Dike <jdike@linux.intel.com> --- arch/um/include/line.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6.22/arch/um/include/line.h =================================================================== --- linux-2.6.22.orig/arch/um/include/line.h 2007-07-08 19:32:17.000000000 -0400 +++ linux-2.6.22/arch/um/include/line.h 2008-03-17 13:42:36.000000000 -0400 @@ -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);
| |