diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:24 -0500 |
commit | de5fe76e436d9e98f8af8005ff23a2e6066aea10 (patch) | |
tree | f4d5672caab38f21f19bc18ac348387b363a9ec1 /arch/um/os-Linux/umid.c | |
parent | 4cffb7fa69349d48d900d98766dc9ad52d9c851e (diff) |
[PATCH] uml: umid tidying
Add an error message when two umids are put on the command line.
umid.h is kind of pointless since it only declares one thing, and that
is already declared in os.h.
Commented the lack of locking of some data in os-Linux/umid.h.
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/um/os-Linux/umid.c')
-rw-r--r-- | arch/um/os-Linux/umid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/os-Linux/umid.c b/arch/um/os-Linux/umid.c index 48092b95c8ab..b462863f7172 100644 --- a/arch/um/os-Linux/umid.c +++ b/arch/um/os-Linux/umid.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #define UMID_LEN 64 | 18 | #define UMID_LEN 64 |
19 | 19 | ||
20 | /* Changed by set_umid, which is run early in boot */ | 20 | /* Changed by set_umid, which is run early in boot */ |
21 | char umid[UMID_LEN] = { 0 }; | 21 | static char umid[UMID_LEN] = { 0 }; |
22 | 22 | ||
23 | /* Changed by set_uml_dir and make_uml_dir, which are run early in boot */ | 23 | /* Changed by set_uml_dir and make_uml_dir, which are run early in boot */ |
24 | static char *uml_dir = UML_DIR; | 24 | static char *uml_dir = UML_DIR; |
@@ -235,6 +235,7 @@ int __init set_umid(char *name) | |||
235 | return 0; | 235 | return 0; |
236 | } | 236 | } |
237 | 237 | ||
238 | /* Changed in make_umid, which is called during early boot */ | ||
238 | static int umid_setup = 0; | 239 | static int umid_setup = 0; |
239 | 240 | ||
240 | int __init make_umid(void) | 241 | int __init make_umid(void) |