diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:22 -0500 |
commit | c59bce6262f9511c8e2504231f60609bf7332833 (patch) | |
tree | 9b5d91bf6e3f4680f2cde658d772f660a9b9c7d3 /arch | |
parent | c862fc32a3ee4319c652f4ff39462d030120c380 (diff) |
[PATCH] uml: use LIST_HEAD where possible
A couple of list_head declarations can be improved through the use of
LIST_HEAD().
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/port_kern.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index b4dbd102da0e..a5a683d6fc5c 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -371,7 +371,7 @@ struct unplugged_pages { | |||
371 | 371 | ||
372 | static DECLARE_MUTEX(plug_mem_mutex); | 372 | static DECLARE_MUTEX(plug_mem_mutex); |
373 | static unsigned long long unplugged_pages_count = 0; | 373 | static unsigned long long unplugged_pages_count = 0; |
374 | static struct list_head unplugged_pages = LIST_HEAD_INIT(unplugged_pages); | 374 | static LIST_HEAD(unplugged_pages); |
375 | static int unplug_index = UNPLUGGED_PER_PAGE; | 375 | static int unplug_index = UNPLUGGED_PER_PAGE; |
376 | 376 | ||
377 | static int mem_config(char *str, char **error_out) | 377 | static int mem_config(char *str, char **error_out) |
diff --git a/arch/um/drivers/port_kern.c b/arch/um/drivers/port_kern.c index 4dd7d8a11db2..1c8efd95c421 100644 --- a/arch/um/drivers/port_kern.c +++ b/arch/um/drivers/port_kern.c | |||
@@ -130,7 +130,7 @@ static int port_accept(struct port_list *port) | |||
130 | } | 130 | } |
131 | 131 | ||
132 | static DECLARE_MUTEX(ports_sem); | 132 | static DECLARE_MUTEX(ports_sem); |
133 | static struct list_head ports = LIST_HEAD_INIT(ports); | 133 | static LIST_HEAD(ports); |
134 | 134 | ||
135 | void port_work_proc(struct work_struct *unused) | 135 | void port_work_proc(struct work_struct *unused) |
136 | { | 136 | { |