diff options
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/chan_kern.h | 2 | ||||
-rw-r--r-- | arch/um/include/chan_user.h | 5 | ||||
-rw-r--r-- | arch/um/include/common-offsets.h | 3 | ||||
-rw-r--r-- | arch/um/include/os.h | 6 | ||||
-rw-r--r-- | arch/um/include/um_malloc.h | 12 |
5 files changed, 17 insertions, 11 deletions
diff --git a/arch/um/include/chan_kern.h b/arch/um/include/chan_kern.h index c4b41bb1035f..624b5100a3cd 100644 --- a/arch/um/include/chan_kern.h +++ b/arch/um/include/chan_kern.h | |||
@@ -40,7 +40,7 @@ extern int console_open_chan(struct line *line, struct console *co); | |||
40 | extern void deactivate_chan(struct list_head *chans, int irq); | 40 | extern void deactivate_chan(struct list_head *chans, int irq); |
41 | extern void reactivate_chan(struct list_head *chans, int irq); | 41 | extern void reactivate_chan(struct list_head *chans, int irq); |
42 | extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty); | 42 | extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty); |
43 | extern void enable_chan(struct line *line); | 43 | extern int enable_chan(struct line *line); |
44 | extern void close_chan(struct list_head *chans, int delay_free_irq); | 44 | extern void close_chan(struct list_head *chans, int delay_free_irq); |
45 | extern int chan_window_size(struct list_head *chans, | 45 | extern int chan_window_size(struct list_head *chans, |
46 | unsigned short *rows_out, | 46 | unsigned short *rows_out, |
diff --git a/arch/um/include/chan_user.h b/arch/um/include/chan_user.h index 38f16d812e7c..5a2263e05bb2 100644 --- a/arch/um/include/chan_user.h +++ b/arch/um/include/chan_user.h | |||
@@ -12,8 +12,6 @@ struct chan_opts { | |||
12 | void (*const announce)(char *dev_name, int dev); | 12 | void (*const announce)(char *dev_name, int dev); |
13 | char *xterm_title; | 13 | char *xterm_title; |
14 | const int raw; | 14 | const int raw; |
15 | const unsigned long tramp_stack; | ||
16 | const int in_kernel; | ||
17 | }; | 15 | }; |
18 | 16 | ||
19 | enum chan_init_pri { INIT_STATIC, INIT_ALL, INIT_ONE }; | 17 | enum chan_init_pri { INIT_STATIC, INIT_ALL, INIT_ONE }; |
@@ -44,7 +42,8 @@ extern void generic_free(void *data); | |||
44 | 42 | ||
45 | struct tty_struct; | 43 | struct tty_struct; |
46 | extern void register_winch(int fd, struct tty_struct *tty); | 44 | extern void register_winch(int fd, struct tty_struct *tty); |
47 | extern void register_winch_irq(int fd, int tty_fd, int pid, struct tty_struct *tty); | 45 | extern void register_winch_irq(int fd, int tty_fd, int pid, |
46 | struct tty_struct *tty, unsigned long stack); | ||
48 | 47 | ||
49 | #define __channel_help(fn, prefix) \ | 48 | #define __channel_help(fn, prefix) \ |
50 | __uml_help(fn, prefix "[0-9]*=<channel description>\n" \ | 49 | __uml_help(fn, prefix "[0-9]*=<channel description>\n" \ |
diff --git a/arch/um/include/common-offsets.h b/arch/um/include/common-offsets.h index 7376ee44e330..6eee343e53eb 100644 --- a/arch/um/include/common-offsets.h +++ b/arch/um/include/common-offsets.h | |||
@@ -27,6 +27,9 @@ DEFINE(UM_ELFCLASS64, ELFCLASS64); | |||
27 | 27 | ||
28 | DEFINE(UM_NR_CPUS, NR_CPUS); | 28 | DEFINE(UM_NR_CPUS, NR_CPUS); |
29 | 29 | ||
30 | DEFINE(UM_GFP_KERNEL, GFP_KERNEL); | ||
31 | DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC); | ||
32 | |||
30 | /* For crypto assembler code. */ | 33 | /* For crypto assembler code. */ |
31 | DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); | 34 | DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); |
32 | 35 | ||
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 4d9fb26387d5..930b261ea483 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -239,11 +239,9 @@ extern unsigned long __do_user_copy(void *to, const void *from, int n, | |||
239 | /* execvp.c */ | 239 | /* execvp.c */ |
240 | extern int execvp_noalloc(char *buf, const char *file, char *const argv[]); | 240 | extern int execvp_noalloc(char *buf, const char *file, char *const argv[]); |
241 | /* helper.c */ | 241 | /* helper.c */ |
242 | extern int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv, | 242 | extern int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv); |
243 | unsigned long *stack_out); | ||
244 | extern int run_helper_thread(int (*proc)(void *), void *arg, | 243 | extern int run_helper_thread(int (*proc)(void *), void *arg, |
245 | unsigned int flags, unsigned long *stack_out, | 244 | unsigned int flags, unsigned long *stack_out); |
246 | int stack_order); | ||
247 | extern int helper_wait(int pid); | 245 | extern int helper_wait(int pid); |
248 | 246 | ||
249 | 247 | ||
diff --git a/arch/um/include/um_malloc.h b/arch/um/include/um_malloc.h index e6d7c5aa3f4e..0ad17cb83d96 100644 --- a/arch/um/include/um_malloc.h +++ b/arch/um/include/um_malloc.h | |||
@@ -6,11 +6,17 @@ | |||
6 | #ifndef __UM_MALLOC_H__ | 6 | #ifndef __UM_MALLOC_H__ |
7 | #define __UM_MALLOC_H__ | 7 | #define __UM_MALLOC_H__ |
8 | 8 | ||
9 | extern void *um_kmalloc(int size); | 9 | #include "kern_constants.h" |
10 | extern void *um_kmalloc_atomic(int size); | 10 | |
11 | extern void *__kmalloc(int size, int flags); | ||
12 | static inline void *kmalloc(int size, int flags) | ||
13 | { | ||
14 | return __kmalloc(size, flags); | ||
15 | } | ||
16 | |||
11 | extern void kfree(const void *ptr); | 17 | extern void kfree(const void *ptr); |
12 | 18 | ||
13 | extern void *um_vmalloc(int size); | 19 | extern void *vmalloc(unsigned long size); |
14 | extern void vfree(void *ptr); | 20 | extern void vfree(void *ptr); |
15 | 21 | ||
16 | #endif /* __UM_MALLOC_H__ */ | 22 | #endif /* __UM_MALLOC_H__ */ |