diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 15:01:29 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 09:14:44 -0400 |
commit | 078073a3d48ce7c140f1538d249da3ac545065a6 (patch) | |
tree | 064e0baa9b1a6d97d5dbbbfae388a297303fba65 /arch/um/os-Linux | |
parent | 4de1c5f65c7dd4965a2a58b93205b747d7826110 (diff) |
um: -include user.h for USER_OBJ, trim includes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r-- | arch/um/os-Linux/aio.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/drivers/ethertap_user.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/drivers/tuntap_user.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/elf_aux.c | 1 | ||||
-rw-r--r-- | arch/um/os-Linux/file.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/helper.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/irq.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/main.c | 1 | ||||
-rw-r--r-- | arch/um/os-Linux/mem.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/process.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/sigio.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/signal.c | 1 | ||||
-rw-r--r-- | arch/um/os-Linux/skas/mem.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/skas/process.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/start_up.c | 1 | ||||
-rw-r--r-- | arch/um/os-Linux/sys-i386/registers.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/sys-i386/task_size.c | 1 | ||||
-rw-r--r-- | arch/um/os-Linux/sys-i386/tls.c | 1 | ||||
-rw-r--r-- | arch/um/os-Linux/sys-x86_64/registers.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/time.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/tty.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/umid.c | 2 | ||||
-rw-r--r-- | arch/um/os-Linux/util.c | 2 |
23 files changed, 0 insertions, 40 deletions
diff --git a/arch/um/os-Linux/aio.c b/arch/um/os-Linux/aio.c index 57e3d46c989c..c5d039e1ff3b 100644 --- a/arch/um/os-Linux/aio.c +++ b/arch/um/os-Linux/aio.c | |||
@@ -11,10 +11,8 @@ | |||
11 | #include <asm/unistd.h> | 11 | #include <asm/unistd.h> |
12 | #include "aio.h" | 12 | #include "aio.h" |
13 | #include "init.h" | 13 | #include "init.h" |
14 | #include "kern_constants.h" | ||
15 | #include "kern_util.h" | 14 | #include "kern_util.h" |
16 | #include "os.h" | 15 | #include "os.h" |
17 | #include "user.h" | ||
18 | 16 | ||
19 | struct aio_thread_req { | 17 | struct aio_thread_req { |
20 | enum aio_type type; | 18 | enum aio_type type; |
diff --git a/arch/um/os-Linux/drivers/ethertap_user.c b/arch/um/os-Linux/drivers/ethertap_user.c index cc72cb2c1af6..db3d6481375a 100644 --- a/arch/um/os-Linux/drivers/ethertap_user.c +++ b/arch/um/os-Linux/drivers/ethertap_user.c | |||
@@ -13,11 +13,9 @@ | |||
13 | #include <sys/socket.h> | 13 | #include <sys/socket.h> |
14 | #include <sys/wait.h> | 14 | #include <sys/wait.h> |
15 | #include "etap.h" | 15 | #include "etap.h" |
16 | #include "kern_constants.h" | ||
17 | #include "os.h" | 16 | #include "os.h" |
18 | #include "net_user.h" | 17 | #include "net_user.h" |
19 | #include "um_malloc.h" | 18 | #include "um_malloc.h" |
20 | #include "user.h" | ||
21 | 19 | ||
22 | #define MAX_PACKET ETH_MAX_PACKET | 20 | #define MAX_PACKET ETH_MAX_PACKET |
23 | 21 | ||
diff --git a/arch/um/os-Linux/drivers/tuntap_user.c b/arch/um/os-Linux/drivers/tuntap_user.c index 2448be03fd7a..a2aacffdd907 100644 --- a/arch/um/os-Linux/drivers/tuntap_user.c +++ b/arch/um/os-Linux/drivers/tuntap_user.c | |||
@@ -13,11 +13,9 @@ | |||
13 | #include <sys/socket.h> | 13 | #include <sys/socket.h> |
14 | #include <sys/wait.h> | 14 | #include <sys/wait.h> |
15 | #include <sys/uio.h> | 15 | #include <sys/uio.h> |
16 | #include "kern_constants.h" | ||
17 | #include "kern_util.h" | 16 | #include "kern_util.h" |
18 | #include "os.h" | 17 | #include "os.h" |
19 | #include "tuntap.h" | 18 | #include "tuntap.h" |
20 | #include "user.h" | ||
21 | 19 | ||
22 | static int tuntap_user_init(void *data, void *dev) | 20 | static int tuntap_user_init(void *data, void *dev) |
23 | { | 21 | { |
diff --git a/arch/um/os-Linux/elf_aux.c b/arch/um/os-Linux/elf_aux.c index 953323799381..d895271ad6f7 100644 --- a/arch/um/os-Linux/elf_aux.c +++ b/arch/um/os-Linux/elf_aux.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include "init.h" | 12 | #include "init.h" |
13 | #include "elf_user.h" | 13 | #include "elf_user.h" |
14 | #include "mem_user.h" | 14 | #include "mem_user.h" |
15 | #include <kern_constants.h> | ||
16 | 15 | ||
17 | typedef Elf32_auxv_t elf_auxv_t; | 16 | typedef Elf32_auxv_t elf_auxv_t; |
18 | 17 | ||
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index 140e587bc0ad..b049a63bb74b 100644 --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c | |||
@@ -13,9 +13,7 @@ | |||
13 | #include <sys/socket.h> | 13 | #include <sys/socket.h> |
14 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
15 | #include <sys/un.h> | 15 | #include <sys/un.h> |
16 | #include "kern_constants.h" | ||
17 | #include "os.h" | 16 | #include "os.h" |
18 | #include "user.h" | ||
19 | 17 | ||
20 | static void copy_stat(struct uml_stat *dst, const struct stat64 *src) | 18 | static void copy_stat(struct uml_stat *dst, const struct stat64 *src) |
21 | { | 19 | { |
diff --git a/arch/um/os-Linux/helper.c b/arch/um/os-Linux/helper.c index feff22d64672..cf26c4a9a43a 100644 --- a/arch/um/os-Linux/helper.c +++ b/arch/um/os-Linux/helper.c | |||
@@ -10,11 +10,9 @@ | |||
10 | #include <linux/limits.h> | 10 | #include <linux/limits.h> |
11 | #include <sys/socket.h> | 11 | #include <sys/socket.h> |
12 | #include <sys/wait.h> | 12 | #include <sys/wait.h> |
13 | #include "kern_constants.h" | ||
14 | #include "kern_util.h" | 13 | #include "kern_util.h" |
15 | #include "os.h" | 14 | #include "os.h" |
16 | #include "um_malloc.h" | 15 | #include "um_malloc.h" |
17 | #include "user.h" | ||
18 | 16 | ||
19 | struct helper_data { | 17 | struct helper_data { |
20 | void (*pre_exec)(void*); | 18 | void (*pre_exec)(void*); |
diff --git a/arch/um/os-Linux/irq.c b/arch/um/os-Linux/irq.c index 0348b975e81c..59c592cca25d 100644 --- a/arch/um/os-Linux/irq.c +++ b/arch/um/os-Linux/irq.c | |||
@@ -9,11 +9,9 @@ | |||
9 | #include <signal.h> | 9 | #include <signal.h> |
10 | #include <string.h> | 10 | #include <string.h> |
11 | #include "irq_user.h" | 11 | #include "irq_user.h" |
12 | #include "kern_constants.h" | ||
13 | #include "os.h" | 12 | #include "os.h" |
14 | #include "process.h" | 13 | #include "process.h" |
15 | #include "um_malloc.h" | 14 | #include "um_malloc.h" |
16 | #include "user.h" | ||
17 | 15 | ||
18 | /* | 16 | /* |
19 | * Locked by irq_lock in arch/um/kernel/irq.c. Changed by os_create_pollfd | 17 | * Locked by irq_lock in arch/um/kernel/irq.c. Changed by os_create_pollfd |
diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index 8471b817d94f..7a86dd516eb1 100644 --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <sys/resource.h> | 12 | #include <sys/resource.h> |
13 | #include "as-layout.h" | 13 | #include "as-layout.h" |
14 | #include "init.h" | 14 | #include "init.h" |
15 | #include "kern_constants.h" | ||
16 | #include "kern_util.h" | 15 | #include "kern_util.h" |
17 | #include "os.h" | 16 | #include "os.h" |
18 | #include "um_malloc.h" | 17 | #include "um_malloc.h" |
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index 62878cf1d33f..8e421e1d6d36 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c | |||
@@ -14,9 +14,7 @@ | |||
14 | #include <sys/mman.h> | 14 | #include <sys/mman.h> |
15 | #include <sys/param.h> | 15 | #include <sys/param.h> |
16 | #include "init.h" | 16 | #include "init.h" |
17 | #include "kern_constants.h" | ||
18 | #include "os.h" | 17 | #include "os.h" |
19 | #include "user.h" | ||
20 | 18 | ||
21 | /* Modified by which_tmpdir, which is called during early boot */ | 19 | /* Modified by which_tmpdir, which is called during early boot */ |
22 | static char *default_tmpdir = "/tmp"; | 20 | static char *default_tmpdir = "/tmp"; |
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c index 0c45dc8efb05..0ced30cd4ab8 100644 --- a/arch/um/os-Linux/process.c +++ b/arch/um/os-Linux/process.c | |||
@@ -13,12 +13,10 @@ | |||
13 | #include <sys/wait.h> | 13 | #include <sys/wait.h> |
14 | #include <asm/unistd.h> | 14 | #include <asm/unistd.h> |
15 | #include "init.h" | 15 | #include "init.h" |
16 | #include "kern_constants.h" | ||
17 | #include "longjmp.h" | 16 | #include "longjmp.h" |
18 | #include "os.h" | 17 | #include "os.h" |
19 | #include "process.h" | 18 | #include "process.h" |
20 | #include "skas_ptrace.h" | 19 | #include "skas_ptrace.h" |
21 | #include "user.h" | ||
22 | 20 | ||
23 | #define ARBITRARY_ADDR -1 | 21 | #define ARBITRARY_ADDR -1 |
24 | #define FAILURE_PID -1 | 22 | #define FAILURE_PID -1 |
diff --git a/arch/um/os-Linux/sigio.c b/arch/um/os-Linux/sigio.c index 63d299df152b..34bb59bfa00b 100644 --- a/arch/um/os-Linux/sigio.c +++ b/arch/um/os-Linux/sigio.c | |||
@@ -11,14 +11,12 @@ | |||
11 | #include <sched.h> | 11 | #include <sched.h> |
12 | #include <signal.h> | 12 | #include <signal.h> |
13 | #include <string.h> | 13 | #include <string.h> |
14 | #include "kern_constants.h" | ||
15 | #include "kern_util.h" | 14 | #include "kern_util.h" |
16 | #include "init.h" | 15 | #include "init.h" |
17 | #include "os.h" | 16 | #include "os.h" |
18 | #include "process.h" | 17 | #include "process.h" |
19 | #include "sigio.h" | 18 | #include "sigio.h" |
20 | #include "um_malloc.h" | 19 | #include "um_malloc.h" |
21 | #include "user.h" | ||
22 | 20 | ||
23 | /* | 21 | /* |
24 | * Protected by sigio_lock(), also used by sigio_cleanup, which is an | 22 | * Protected by sigio_lock(), also used by sigio_cleanup, which is an |
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c index 6ae180703a63..4fc3cd19ec69 100644 --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include "process.h" | 15 | #include "process.h" |
16 | #include "sysdep/barrier.h" | 16 | #include "sysdep/barrier.h" |
17 | #include "sysdep/sigcontext.h" | 17 | #include "sysdep/sigcontext.h" |
18 | #include "user.h" | ||
19 | 18 | ||
20 | /* Copied from linux/compiler-gcc.h since we can't include it directly */ | 19 | /* Copied from linux/compiler-gcc.h since we can't include it directly */ |
21 | #define barrier() __asm__ __volatile__("": : :"memory") | 20 | #define barrier() __asm__ __volatile__("": : :"memory") |
diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c index e771398be5f3..c0afff7af4bd 100644 --- a/arch/um/os-Linux/skas/mem.c +++ b/arch/um/os-Linux/skas/mem.c | |||
@@ -9,7 +9,6 @@ | |||
9 | #include <string.h> | 9 | #include <string.h> |
10 | #include <sys/mman.h> | 10 | #include <sys/mman.h> |
11 | #include "init.h" | 11 | #include "init.h" |
12 | #include "kern_constants.h" | ||
13 | #include "as-layout.h" | 12 | #include "as-layout.h" |
14 | #include "mm_id.h" | 13 | #include "mm_id.h" |
15 | #include "os.h" | 14 | #include "os.h" |
@@ -17,7 +16,6 @@ | |||
17 | #include "ptrace_user.h" | 16 | #include "ptrace_user.h" |
18 | #include "registers.h" | 17 | #include "registers.h" |
19 | #include "skas.h" | 18 | #include "skas.h" |
20 | #include "user.h" | ||
21 | #include "sysdep/ptrace.h" | 19 | #include "sysdep/ptrace.h" |
22 | #include "sysdep/stub.h" | 20 | #include "sysdep/stub.h" |
23 | 21 | ||
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c index dee0e8cf8ad0..2a72bfcd7aba 100644 --- a/arch/um/os-Linux/skas/process.c +++ b/arch/um/os-Linux/skas/process.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <asm/unistd.h> | 14 | #include <asm/unistd.h> |
15 | #include "as-layout.h" | 15 | #include "as-layout.h" |
16 | #include "chan_user.h" | 16 | #include "chan_user.h" |
17 | #include "kern_constants.h" | ||
18 | #include "kern_util.h" | 17 | #include "kern_util.h" |
19 | #include "mem.h" | 18 | #include "mem.h" |
20 | #include "os.h" | 19 | #include "os.h" |
@@ -24,7 +23,6 @@ | |||
24 | #include "registers.h" | 23 | #include "registers.h" |
25 | #include "skas.h" | 24 | #include "skas.h" |
26 | #include "skas_ptrace.h" | 25 | #include "skas_ptrace.h" |
27 | #include "user.h" | ||
28 | #include "sysdep/stub.h" | 26 | #include "sysdep/stub.h" |
29 | 27 | ||
30 | int is_skas_winch(int pid, int fd, void *data) | 28 | int is_skas_winch(int pid, int fd, void *data) |
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c index 02ee9adff54a..b6986809b8e0 100644 --- a/arch/um/os-Linux/start_up.c +++ b/arch/um/os-Linux/start_up.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <sys/wait.h> | 18 | #include <sys/wait.h> |
19 | #include <asm/unistd.h> | 19 | #include <asm/unistd.h> |
20 | #include "init.h" | 20 | #include "init.h" |
21 | #include "kern_constants.h" | ||
22 | #include "os.h" | 21 | #include "os.h" |
23 | #include "mem_user.h" | 22 | #include "mem_user.h" |
24 | #include "ptrace_user.h" | 23 | #include "ptrace_user.h" |
diff --git a/arch/um/os-Linux/sys-i386/registers.c b/arch/um/os-Linux/sys-i386/registers.c index 229f7a53d8da..913d811b38db 100644 --- a/arch/um/os-Linux/sys-i386/registers.c +++ b/arch/um/os-Linux/sys-i386/registers.c | |||
@@ -7,9 +7,7 @@ | |||
7 | #include <errno.h> | 7 | #include <errno.h> |
8 | #include <sys/ptrace.h> | 8 | #include <sys/ptrace.h> |
9 | #include <sys/user.h> | 9 | #include <sys/user.h> |
10 | #include "kern_constants.h" | ||
11 | #include "longjmp.h" | 10 | #include "longjmp.h" |
12 | #include "user.h" | ||
13 | #include "sysdep/ptrace_user.h" | 11 | #include "sysdep/ptrace_user.h" |
14 | 12 | ||
15 | int save_fp_registers(int pid, unsigned long *fp_regs) | 13 | int save_fp_registers(int pid, unsigned long *fp_regs) |
diff --git a/arch/um/os-Linux/sys-i386/task_size.c b/arch/um/os-Linux/sys-i386/task_size.c index be04c1e183bf..4ce09b8e99c9 100644 --- a/arch/um/os-Linux/sys-i386/task_size.c +++ b/arch/um/os-Linux/sys-i386/task_size.c | |||
@@ -3,7 +3,6 @@ | |||
3 | #include <signal.h> | 3 | #include <signal.h> |
4 | #include <sys/mman.h> | 4 | #include <sys/mman.h> |
5 | #include "longjmp.h" | 5 | #include "longjmp.h" |
6 | #include "kern_constants.h" | ||
7 | 6 | ||
8 | static jmp_buf buf; | 7 | static jmp_buf buf; |
9 | 8 | ||
diff --git a/arch/um/os-Linux/sys-i386/tls.c b/arch/um/os-Linux/sys-i386/tls.c index 32ed41ec1a3d..281e83ecce3d 100644 --- a/arch/um/os-Linux/sys-i386/tls.c +++ b/arch/um/os-Linux/sys-i386/tls.c | |||
@@ -5,7 +5,6 @@ | |||
5 | #include <unistd.h> | 5 | #include <unistd.h> |
6 | 6 | ||
7 | #include "sysdep/tls.h" | 7 | #include "sysdep/tls.h" |
8 | #include "user.h" | ||
9 | 8 | ||
10 | /* Checks whether host supports TLS, and sets *tls_min according to the value | 9 | /* Checks whether host supports TLS, and sets *tls_min according to the value |
11 | * valid on the host. | 10 | * valid on the host. |
diff --git a/arch/um/os-Linux/sys-x86_64/registers.c b/arch/um/os-Linux/sys-x86_64/registers.c index 594d97ad02b3..0594d550c034 100644 --- a/arch/um/os-Linux/sys-x86_64/registers.c +++ b/arch/um/os-Linux/sys-x86_64/registers.c | |||
@@ -7,9 +7,7 @@ | |||
7 | #include <sys/ptrace.h> | 7 | #include <sys/ptrace.h> |
8 | #define __FRAME_OFFSETS | 8 | #define __FRAME_OFFSETS |
9 | #include <asm/ptrace.h> | 9 | #include <asm/ptrace.h> |
10 | #include "kern_constants.h" | ||
11 | #include "longjmp.h" | 10 | #include "longjmp.h" |
12 | #include "user.h" | ||
13 | 11 | ||
14 | int save_fp_registers(int pid, unsigned long *fp_regs) | 12 | int save_fp_registers(int pid, unsigned long *fp_regs) |
15 | { | 13 | { |
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c index 6e3359d6a839..995ca304f1c9 100644 --- a/arch/um/os-Linux/time.c +++ b/arch/um/os-Linux/time.c | |||
@@ -8,11 +8,9 @@ | |||
8 | #include <signal.h> | 8 | #include <signal.h> |
9 | #include <time.h> | 9 | #include <time.h> |
10 | #include <sys/time.h> | 10 | #include <sys/time.h> |
11 | #include "kern_constants.h" | ||
12 | #include "kern_util.h" | 11 | #include "kern_util.h" |
13 | #include "os.h" | 12 | #include "os.h" |
14 | #include "process.h" | 13 | #include "process.h" |
15 | #include "user.h" | ||
16 | 14 | ||
17 | int set_interval(void) | 15 | int set_interval(void) |
18 | { | 16 | { |
diff --git a/arch/um/os-Linux/tty.c b/arch/um/os-Linux/tty.c index b09ff66a77ee..dd12b99dcb59 100644 --- a/arch/um/os-Linux/tty.c +++ b/arch/um/os-Linux/tty.c | |||
@@ -7,10 +7,8 @@ | |||
7 | #include <unistd.h> | 7 | #include <unistd.h> |
8 | #include <errno.h> | 8 | #include <errno.h> |
9 | #include <fcntl.h> | 9 | #include <fcntl.h> |
10 | #include "kern_constants.h" | ||
11 | #include "kern_util.h" | 10 | #include "kern_util.h" |
12 | #include "os.h" | 11 | #include "os.h" |
13 | #include "user.h" | ||
14 | 12 | ||
15 | struct grantpt_info { | 13 | struct grantpt_info { |
16 | int fd; | 14 | int fd; |
diff --git a/arch/um/os-Linux/umid.c b/arch/um/os-Linux/umid.c index a27defb81884..4832eb519f8d 100644 --- a/arch/um/os-Linux/umid.c +++ b/arch/um/os-Linux/umid.c | |||
@@ -13,9 +13,7 @@ | |||
13 | #include <unistd.h> | 13 | #include <unistd.h> |
14 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
15 | #include "init.h" | 15 | #include "init.h" |
16 | #include "kern_constants.h" | ||
17 | #include "os.h" | 16 | #include "os.h" |
18 | #include "user.h" | ||
19 | 17 | ||
20 | #define UML_DIR "~/.uml/" | 18 | #define UML_DIR "~/.uml/" |
21 | 19 | ||
diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index 5803b1887672..9e3b43bb84c9 100644 --- a/arch/um/os-Linux/util.c +++ b/arch/um/os-Linux/util.c | |||
@@ -13,9 +13,7 @@ | |||
13 | #include <wait.h> | 13 | #include <wait.h> |
14 | #include <sys/mman.h> | 14 | #include <sys/mman.h> |
15 | #include <sys/utsname.h> | 15 | #include <sys/utsname.h> |
16 | #include "kern_constants.h" | ||
17 | #include "os.h" | 16 | #include "os.h" |
18 | #include "user.h" | ||
19 | 17 | ||
20 | void stack_protections(unsigned long address) | 18 | void stack_protections(unsigned long address) |
21 | { | 19 | { |