[PATCH] uml: sparse cleanups
misc sparse annotations Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -58,23 +58,17 @@ struct line {
|
||||
};
|
||||
|
||||
#define LINE_INIT(str, d) \
|
||||
{ init_str : str, \
|
||||
init_pri : INIT_STATIC, \
|
||||
valid : 1, \
|
||||
throttled : 0, \
|
||||
lock : SPIN_LOCK_UNLOCKED, \
|
||||
buffer : NULL, \
|
||||
head : NULL, \
|
||||
tail : NULL, \
|
||||
sigio : 0, \
|
||||
driver : d, \
|
||||
have_irq : 0 }
|
||||
{ .init_str = str, \
|
||||
.init_pri = INIT_STATIC, \
|
||||
.valid = 1, \
|
||||
.lock = SPIN_LOCK_UNLOCKED, \
|
||||
.driver = d }
|
||||
|
||||
struct lines {
|
||||
int num;
|
||||
};
|
||||
|
||||
#define LINES_INIT(n) { num : n }
|
||||
#define LINES_INIT(n) { .num = n }
|
||||
|
||||
extern void line_close(struct tty_struct *tty, struct file * filp);
|
||||
extern int line_open(struct line *lines, struct tty_struct *tty);
|
||||
|
Reference in New Issue
Block a user