diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-02-29 13:23:45 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-02-29 13:23:45 -0500 |
| commit | 88ebdda6159ffc15699f204c33feb3e431bf9bdc (patch) | |
| tree | be2523b6ea1674beab7c8b6b53d02548c965cdd2 | |
| parent | 164974a8f2a482f1abcb027c6d1a89dd79b14297 (diff) | |
| parent | 3f6ffc8c2087791920721f086f9a92fde7bed9e2 (diff) | |
Merge tag 'for-3.3' of git://openrisc.net/jonas/linux
Build fixes for 3.3 from Jonas Bonn
* tag 'for-3.3' of git://openrisc.net/jonas/linux:
openrisc: Fix up audit_syscall_[entry|exit]() usage
openrisc: include export.h for EXPORT_SYMBOL
| -rw-r--r-- | arch/openrisc/include/asm/ptrace.h | 8 | ||||
| -rw-r--r-- | arch/openrisc/kernel/init_task.c | 1 | ||||
| -rw-r--r-- | arch/openrisc/kernel/irq.c | 1 | ||||
| -rw-r--r-- | arch/openrisc/kernel/ptrace.c | 12 |
4 files changed, 13 insertions, 9 deletions
diff --git a/arch/openrisc/include/asm/ptrace.h b/arch/openrisc/include/asm/ptrace.h index 054537c5f9c9..e612ce4512c7 100644 --- a/arch/openrisc/include/asm/ptrace.h +++ b/arch/openrisc/include/asm/ptrace.h | |||
| @@ -77,7 +77,6 @@ struct pt_regs { | |||
| 77 | long syscallno; /* Syscall number (used by strace) */ | 77 | long syscallno; /* Syscall number (used by strace) */ |
| 78 | long dummy; /* Cheap alignment fix */ | 78 | long dummy; /* Cheap alignment fix */ |
| 79 | }; | 79 | }; |
| 80 | #endif /* __ASSEMBLY__ */ | ||
| 81 | 80 | ||
| 82 | /* TODO: Rename this to REDZONE because that's what it is */ | 81 | /* TODO: Rename this to REDZONE because that's what it is */ |
| 83 | #define STACK_FRAME_OVERHEAD 128 /* size of minimum stack frame */ | 82 | #define STACK_FRAME_OVERHEAD 128 /* size of minimum stack frame */ |
| @@ -87,6 +86,13 @@ struct pt_regs { | |||
| 87 | #define user_stack_pointer(regs) ((unsigned long)(regs)->sp) | 86 | #define user_stack_pointer(regs) ((unsigned long)(regs)->sp) |
| 88 | #define profile_pc(regs) instruction_pointer(regs) | 87 | #define profile_pc(regs) instruction_pointer(regs) |
| 89 | 88 | ||
| 89 | static inline long regs_return_value(struct pt_regs *regs) | ||
| 90 | { | ||
| 91 | return regs->gpr[11]; | ||
| 92 | } | ||
| 93 | |||
| 94 | #endif /* __ASSEMBLY__ */ | ||
| 95 | |||
| 90 | /* | 96 | /* |
| 91 | * Offsets used by 'ptrace' system call interface. | 97 | * Offsets used by 'ptrace' system call interface. |
| 92 | */ | 98 | */ |
diff --git a/arch/openrisc/kernel/init_task.c b/arch/openrisc/kernel/init_task.c index 45744a384927..ca534082d5f3 100644 --- a/arch/openrisc/kernel/init_task.c +++ b/arch/openrisc/kernel/init_task.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | #include <linux/init_task.h> | 18 | #include <linux/init_task.h> |
| 19 | #include <linux/mqueue.h> | 19 | #include <linux/mqueue.h> |
| 20 | #include <linux/export.h> | ||
| 20 | 21 | ||
| 21 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | 22 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); |
| 22 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | 23 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); |
diff --git a/arch/openrisc/kernel/irq.c b/arch/openrisc/kernel/irq.c index 59b302338331..4bfead220956 100644 --- a/arch/openrisc/kernel/irq.c +++ b/arch/openrisc/kernel/irq.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <linux/irq.h> | 23 | #include <linux/irq.h> |
| 24 | #include <linux/seq_file.h> | 24 | #include <linux/seq_file.h> |
| 25 | #include <linux/kernel_stat.h> | 25 | #include <linux/kernel_stat.h> |
| 26 | #include <linux/export.h> | ||
| 26 | 27 | ||
| 27 | #include <linux/irqflags.h> | 28 | #include <linux/irqflags.h> |
| 28 | 29 | ||
diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kernel/ptrace.c index 656b94beab89..7259047d5f9d 100644 --- a/arch/openrisc/kernel/ptrace.c +++ b/arch/openrisc/kernel/ptrace.c | |||
| @@ -188,11 +188,9 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) | |||
| 188 | */ | 188 | */ |
| 189 | ret = -1L; | 189 | ret = -1L; |
| 190 | 190 | ||
| 191 | /* Are these regs right??? */ | 191 | audit_syscall_entry(audit_arch(), regs->syscallno, |
| 192 | if (unlikely(current->audit_context)) | 192 | regs->gpr[3], regs->gpr[4], |
| 193 | audit_syscall_entry(audit_arch(), regs->syscallno, | 193 | regs->gpr[5], regs->gpr[6]); |
| 194 | regs->gpr[3], regs->gpr[4], | ||
| 195 | regs->gpr[5], regs->gpr[6]); | ||
| 196 | 194 | ||
| 197 | return ret ? : regs->syscallno; | 195 | return ret ? : regs->syscallno; |
| 198 | } | 196 | } |
| @@ -201,9 +199,7 @@ asmlinkage void do_syscall_trace_leave(struct pt_regs *regs) | |||
| 201 | { | 199 | { |
| 202 | int step; | 200 | int step; |
| 203 | 201 | ||
| 204 | if (unlikely(current->audit_context)) | 202 | audit_syscall_exit(regs); |
| 205 | audit_syscall_exit(AUDITSC_RESULT(regs->gpr[11]), | ||
| 206 | regs->gpr[11]); | ||
| 207 | 203 | ||
| 208 | step = test_thread_flag(TIF_SINGLESTEP); | 204 | step = test_thread_flag(TIF_SINGLESTEP); |
| 209 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) | 205 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) |
