diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-01-06 03:18:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:46 -0500 |
commit | 9010772cdff36072dd509ec72c1a55fccde8e58e (patch) | |
tree | b87fbf28462462b691b6f2bca382dd6188ef3dc1 /arch/um/drivers/mconsole_kern.c | |
parent | d571cd18f225542460b5d9b83e5e0d507be71656 (diff) |
[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>
Diffstat (limited to 'arch/um/drivers/mconsole_kern.c')
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index 355866af5e0b..b5217bd7bc41 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -51,7 +51,7 @@ static struct notifier_block reboot_notifier = { | |||
51 | * itself and it can only happen on CPU 0. | 51 | * itself and it can only happen on CPU 0. |
52 | */ | 52 | */ |
53 | 53 | ||
54 | LIST_HEAD(mc_requests); | 54 | static LIST_HEAD(mc_requests); |
55 | 55 | ||
56 | static void mc_work_proc(void *unused) | 56 | static void mc_work_proc(void *unused) |
57 | { | 57 | { |
@@ -69,7 +69,7 @@ static void mc_work_proc(void *unused) | |||
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | DECLARE_WORK(mconsole_work, mc_work_proc, NULL); | 72 | static DECLARE_WORK(mconsole_work, mc_work_proc, NULL); |
73 | 73 | ||
74 | static irqreturn_t mconsole_interrupt(int irq, void *dev_id, | 74 | static irqreturn_t mconsole_interrupt(int irq, void *dev_id, |
75 | struct pt_regs *regs) | 75 | struct pt_regs *regs) |
@@ -535,7 +535,7 @@ void mconsole_stack(struct mc_request *req) | |||
535 | */ | 535 | */ |
536 | static char *notify_socket = NULL; | 536 | static char *notify_socket = NULL; |
537 | 537 | ||
538 | int mconsole_init(void) | 538 | static int mconsole_init(void) |
539 | { | 539 | { |
540 | /* long to avoid size mismatch warnings from gcc */ | 540 | /* long to avoid size mismatch warnings from gcc */ |
541 | long sock; | 541 | long sock; |