diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/line.c | 1 | ||||
-rw-r--r-- | arch/um/include/asm/system.h | 3 | ||||
-rw-r--r-- | arch/um/sys-i386/asm/elf.h | 2 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/elf.h | 2 | ||||
-rw-r--r-- | arch/um/sys-x86_64/signal.c | 3 |
5 files changed, 5 insertions, 6 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index 64cda95f59ca..74874ed08373 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c | |||
@@ -18,7 +18,6 @@ static irqreturn_t line_interrupt(int irq, void *data) | |||
18 | { | 18 | { |
19 | struct chan *chan = data; | 19 | struct chan *chan = data; |
20 | struct line *line = chan->line; | 20 | struct line *line = chan->line; |
21 | struct tty_struct *tty; | ||
22 | 21 | ||
23 | if (line) | 22 | if (line) |
24 | chan_interrupt(&line->chan_list, &line->task, line->tty, irq); | 23 | chan_interrupt(&line->chan_list, &line->task, line->tty, irq); |
diff --git a/arch/um/include/asm/system.h b/arch/um/include/asm/system.h index 753346e2cdfd..93af1cf0907d 100644 --- a/arch/um/include/asm/system.h +++ b/arch/um/include/asm/system.h | |||
@@ -3,11 +3,8 @@ | |||
3 | 3 | ||
4 | #include "sysdep/system.h" | 4 | #include "sysdep/system.h" |
5 | 5 | ||
6 | extern void *switch_to(void *prev, void *next, void *last); | ||
7 | |||
8 | extern int get_signals(void); | 6 | extern int get_signals(void); |
9 | extern int set_signals(int enable); | 7 | extern int set_signals(int enable); |
10 | extern int get_signals(void); | ||
11 | extern void block_signals(void); | 8 | extern void block_signals(void); |
12 | extern void unblock_signals(void); | 9 | extern void unblock_signals(void); |
13 | 10 | ||
diff --git a/arch/um/sys-i386/asm/elf.h b/arch/um/sys-i386/asm/elf.h index e64cd41d7bab..a979a22a8d9f 100644 --- a/arch/um/sys-i386/asm/elf.h +++ b/arch/um/sys-i386/asm/elf.h | |||
@@ -75,6 +75,8 @@ typedef struct user_i387_struct elf_fpregset_t; | |||
75 | pr_reg[16] = PT_REGS_SS(regs); \ | 75 | pr_reg[16] = PT_REGS_SS(regs); \ |
76 | } while (0); | 76 | } while (0); |
77 | 77 | ||
78 | struct task_struct; | ||
79 | |||
78 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); | 80 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); |
79 | 81 | ||
80 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) | 82 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) |
diff --git a/arch/um/sys-x86_64/asm/elf.h b/arch/um/sys-x86_64/asm/elf.h index 49655c83efd2..d760967f33a7 100644 --- a/arch/um/sys-x86_64/asm/elf.h +++ b/arch/um/sys-x86_64/asm/elf.h | |||
@@ -95,6 +95,8 @@ typedef struct user_i387_struct elf_fpregset_t; | |||
95 | (pr_reg)[25] = 0; \ | 95 | (pr_reg)[25] = 0; \ |
96 | (pr_reg)[26] = 0; | 96 | (pr_reg)[26] = 0; |
97 | 97 | ||
98 | struct task_struct; | ||
99 | |||
98 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); | 100 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); |
99 | 101 | ||
100 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) | 102 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) |
diff --git a/arch/um/sys-x86_64/signal.c b/arch/um/sys-x86_64/signal.c index 1a899a7ed7a6..b6b65c7c7a7d 100644 --- a/arch/um/sys-x86_64/signal.c +++ b/arch/um/sys-x86_64/signal.c | |||
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | #include <linux/personality.h> | 7 | #include <linux/personality.h> |
8 | #include <linux/ptrace.h> | 8 | #include <linux/ptrace.h> |
9 | #include <linux/kernel.h> | ||
9 | #include <asm/unistd.h> | 10 | #include <asm/unistd.h> |
10 | #include <asm/uaccess.h> | 11 | #include <asm/uaccess.h> |
11 | #include <asm/ucontext.h> | 12 | #include <asm/ucontext.h> |
@@ -165,8 +166,6 @@ struct rt_sigframe | |||
165 | struct _fpstate fpstate; | 166 | struct _fpstate fpstate; |
166 | }; | 167 | }; |
167 | 168 | ||
168 | #define round_down(m, n) (((m) / (n)) * (n)) | ||
169 | |||
170 | int setup_signal_stack_si(unsigned long stack_top, int sig, | 169 | int setup_signal_stack_si(unsigned long stack_top, int sig, |
171 | struct k_sigaction *ka, struct pt_regs * regs, | 170 | struct k_sigaction *ka, struct pt_regs * regs, |
172 | siginfo_t *info, sigset_t *set) | 171 | siginfo_t *info, sigset_t *set) |