[PATCH] uml: Add static initializations and declarations
Some structure fields were being dynamically initialized when they could be initialized at compile-time instead. This also makes some declarations static (in the C sense). 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:

committed by
Linus Torvalds

parent
d571cd18f2
commit
9010772cdf
@@ -58,8 +58,8 @@ struct line {
|
||||
#define LINE_INIT(str, d) \
|
||||
{ init_str : str, \
|
||||
init_pri : INIT_STATIC, \
|
||||
chan_list : { }, \
|
||||
valid : 1, \
|
||||
lock : SPIN_LOCK_UNLOCKED, \
|
||||
buffer : NULL, \
|
||||
head : NULL, \
|
||||
tail : NULL, \
|
||||
|
Reference in New Issue
Block a user