提交 5563d722 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

uml: use __SPIN_LOCK_UNLOCKED

From: Robert P. J. Day <rpjday@crashcourse.ca>

Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.
Signed-off-by: NRobert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: NJeff Dike <jdike@linux.intel.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 cfd28f66
...@@ -58,11 +58,11 @@ struct line { ...@@ -58,11 +58,11 @@ struct line {
}; };
#define LINE_INIT(str, d) \ #define LINE_INIT(str, d) \
{ .count_lock = SPIN_LOCK_UNLOCKED, \ { .count_lock = __SPIN_LOCK_UNLOCKED((str).count_lock), \
.init_str = str, \ .init_str = str, \
.init_pri = INIT_STATIC, \ .init_pri = INIT_STATIC, \
.valid = 1, \ .valid = 1, \
.lock = SPIN_LOCK_UNLOCKED, \ .lock = __SPIN_LOCK_UNLOCKED((str).lock), \
.driver = d } .driver = d }
extern void line_close(struct tty_struct *tty, struct file * filp); extern void line_close(struct tty_struct *tty, struct file * filp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册