diff options
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 1 | ||||
-rw-r--r-- | arch/um/drivers/mconsole_user.c | 2 | ||||
-rw-r--r-- | arch/um/include/umid.h | 22 | ||||
-rw-r--r-- | arch/um/kernel/um_arch.c | 1 | ||||
-rw-r--r-- | arch/um/kernel/umid.c | 4 | ||||
-rw-r--r-- | arch/um/os-Linux/umid.c | 3 |
6 files changed, 6 insertions, 27 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index a5a683d6fc5c..178b2eff4a8c 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include "irq_user.h" | 33 | #include "irq_user.h" |
34 | #include "init.h" | 34 | #include "init.h" |
35 | #include "os.h" | 35 | #include "os.h" |
36 | #include "umid.h" | ||
37 | #include "irq_kern.h" | 36 | #include "irq_kern.h" |
38 | #include "choose-mode.h" | 37 | #include "choose-mode.h" |
39 | 38 | ||
diff --git a/arch/um/drivers/mconsole_user.c b/arch/um/drivers/mconsole_user.c index 75aef6f7ef6e..f02634fbf32a 100644 --- a/arch/um/drivers/mconsole_user.c +++ b/arch/um/drivers/mconsole_user.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include "user.h" | 16 | #include "user.h" |
17 | #include "sysdep/ptrace.h" | 17 | #include "sysdep/ptrace.h" |
18 | #include "mconsole.h" | 18 | #include "mconsole.h" |
19 | #include "umid.h" | 19 | #include "os.h" |
20 | #include "user_util.h" | 20 | #include "user_util.h" |
21 | 21 | ||
22 | static struct mconsole_command commands[] = { | 22 | static struct mconsole_command commands[] = { |
diff --git a/arch/um/include/umid.h b/arch/um/include/umid.h deleted file mode 100644 index 11373c851f15..000000000000 --- a/arch/um/include/umid.h +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2001 Jeff Dike (jdike@karaya.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __UMID_H__ | ||
7 | #define __UMID_H__ | ||
8 | |||
9 | extern int umid_file_name(char *name, char *buf, int len); | ||
10 | |||
11 | #endif | ||
12 | |||
13 | /* | ||
14 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
15 | * Emacs will notice this stuff at the end of the file and automatically | ||
16 | * adjust the settings for this buffer only. This must remain at the end | ||
17 | * of the file. | ||
18 | * --------------------------------------------------------------------------- | ||
19 | * Local variables: | ||
20 | * c-file-style: "linux" | ||
21 | * End: | ||
22 | */ | ||
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 66f43c906821..84e57f6da1d3 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include "kern.h" | 30 | #include "kern.h" |
31 | #include "mem_user.h" | 31 | #include "mem_user.h" |
32 | #include "mem.h" | 32 | #include "mem.h" |
33 | #include "umid.h" | ||
34 | #include "initrd.h" | 33 | #include "initrd.h" |
35 | #include "init.h" | 34 | #include "init.h" |
36 | #include "os.h" | 35 | #include "os.h" |
diff --git a/arch/um/kernel/umid.c b/arch/um/kernel/umid.c index 4eaee823bfd2..039e16efcd55 100644 --- a/arch/um/kernel/umid.c +++ b/arch/um/kernel/umid.c | |||
@@ -16,8 +16,10 @@ static int __init set_umid_arg(char *name, int *add) | |||
16 | { | 16 | { |
17 | int err; | 17 | int err; |
18 | 18 | ||
19 | if(umid_inited) | 19 | if(umid_inited){ |
20 | printf("umid already set\n"); | ||
20 | return 0; | 21 | return 0; |
22 | } | ||
21 | 23 | ||
22 | *add = 0; | 24 | *add = 0; |
23 | err = set_umid(name); | 25 | err = set_umid(name); |
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) |