diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-07-10 07:45:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 16:24:24 -0400 |
commit | 29ac1c2142346e1e0e072f41df31688fc42ff540 (patch) | |
tree | e859dc5361070c1ea360aaf3c55af976ad5211e1 | |
parent | 61232f2fe44f7ac12d7512d099a8f10923eff7ea (diff) |
[PATCH] uml: make some symbols static
A few sigio-related things can be made static.
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>
-rw-r--r-- | arch/um/include/os.h | 1 | ||||
-rw-r--r-- | arch/um/kernel/sigio_kern.c | 14 | ||||
-rw-r--r-- | arch/um/os-Linux/sigio.c | 10 |
3 files changed, 6 insertions, 19 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 548f6ddd8597..b6c52496e15a 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -329,7 +329,6 @@ extern void os_set_ioignore(void); | |||
329 | extern void init_irq_signals(int on_sigstack); | 329 | extern void init_irq_signals(int on_sigstack); |
330 | 330 | ||
331 | /* sigio.c */ | 331 | /* sigio.c */ |
332 | extern int add_sigio_fd(int fd, int read); | ||
333 | extern int ignore_sigio_fd(int fd); | 332 | extern int ignore_sigio_fd(int fd); |
334 | extern void maybe_sigio_broken(int fd, int read); | 333 | extern void maybe_sigio_broken(int fd, int read); |
335 | 334 | ||
diff --git a/arch/um/kernel/sigio_kern.c b/arch/um/kernel/sigio_kern.c index 51b677083948..5102ba5d5bd0 100644 --- a/arch/um/kernel/sigio_kern.c +++ b/arch/um/kernel/sigio_kern.c | |||
@@ -53,17 +53,3 @@ void sigio_unlock(void) | |||
53 | { | 53 | { |
54 | spin_unlock(&sigio_spinlock); | 54 | spin_unlock(&sigio_spinlock); |
55 | } | 55 | } |
56 | |||
57 | extern void sigio_cleanup(void); | ||
58 | __uml_exitcall(sigio_cleanup); | ||
59 | |||
60 | /* | ||
61 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
62 | * Emacs will notice this stuff at the end of the file and automatically | ||
63 | * adjust the settings for this buffer only. This must remain at the end | ||
64 | * of the file. | ||
65 | * --------------------------------------------------------------------------- | ||
66 | * Local variables: | ||
67 | * c-file-style: "linux" | ||
68 | * End: | ||
69 | */ | ||
diff --git a/arch/um/os-Linux/sigio.c b/arch/um/os-Linux/sigio.c index d22623e8fced..0ecac563c7b3 100644 --- a/arch/um/os-Linux/sigio.c +++ b/arch/um/os-Linux/sigio.c | |||
@@ -43,13 +43,13 @@ struct pollfds { | |||
43 | /* Protected by sigio_lock(). Used by the sigio thread, but the UML thread | 43 | /* Protected by sigio_lock(). Used by the sigio thread, but the UML thread |
44 | * synchronizes with it. | 44 | * synchronizes with it. |
45 | */ | 45 | */ |
46 | struct pollfds current_poll = { | 46 | static struct pollfds current_poll = { |
47 | .poll = NULL, | 47 | .poll = NULL, |
48 | .size = 0, | 48 | .size = 0, |
49 | .used = 0 | 49 | .used = 0 |
50 | }; | 50 | }; |
51 | 51 | ||
52 | struct pollfds next_poll = { | 52 | static struct pollfds next_poll = { |
53 | .poll = NULL, | 53 | .poll = NULL, |
54 | .size = 0, | 54 | .size = 0, |
55 | .used = 0 | 55 | .used = 0 |
@@ -156,7 +156,7 @@ static void update_thread(void) | |||
156 | set_signals(flags); | 156 | set_signals(flags); |
157 | } | 157 | } |
158 | 158 | ||
159 | int add_sigio_fd(int fd, int read) | 159 | static int add_sigio_fd(int fd, int read) |
160 | { | 160 | { |
161 | int err = 0, i, n, events; | 161 | int err = 0, i, n, events; |
162 | 162 | ||
@@ -333,10 +333,12 @@ void maybe_sigio_broken(int fd, int read) | |||
333 | add_sigio_fd(fd, read); | 333 | add_sigio_fd(fd, read); |
334 | } | 334 | } |
335 | 335 | ||
336 | void sigio_cleanup(void) | 336 | static void sigio_cleanup(void) |
337 | { | 337 | { |
338 | if(write_sigio_pid != -1){ | 338 | if(write_sigio_pid != -1){ |
339 | os_kill_process(write_sigio_pid, 1); | 339 | os_kill_process(write_sigio_pid, 1); |
340 | write_sigio_pid = -1; | 340 | write_sigio_pid = -1; |
341 | } | 341 | } |
342 | } | 342 | } |
343 | |||
344 | __uml_exitcall(sigio_cleanup); | ||