public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] OpenRISC: Fix audit_syscall_exit() usage
@ 2012-02-29  0:46 Richard Weinberger
  2012-02-29  0:46 ` [PATCH 2/2] OpenRISC: IRQ: Include module.h Richard Weinberger
  2012-02-29  7:46 ` [PATCH 1/2] OpenRISC: Fix audit_syscall_exit() usage Jonas Bonn
  0 siblings, 2 replies; 8+ messages in thread
From: Richard Weinberger @ 2012-02-29  0:46 UTC (permalink / raw)
  To: jonas; +Cc: arnd, linux, linux-kernel, Richard Weinberger

Commit d7e7528 (Audit: push audit success and retcode into arch ptrace.h)
changed audit_syscall_exit().

Fixes:
  CC      arch/openrisc/kernel/ptrace.o
arch/openrisc/kernel/ptrace.c: In function ‘do_syscall_trace_leave’:
arch/openrisc/kernel/ptrace.c:206:21: error: macro "audit_syscall_exit" passed 2 arguments, but takes just 1
arch/openrisc/kernel/ptrace.c:205:3: error: ‘audit_syscall_exit’ undeclared (first use in this function)
arch/openrisc/kernel/ptrace.c:205:3: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Richard Weinberger <richard@nod.at>
---
 arch/openrisc/kernel/ptrace.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kernel/ptrace.c
index 656b94b..fa381b2 100644
--- a/arch/openrisc/kernel/ptrace.c
+++ b/arch/openrisc/kernel/ptrace.c
@@ -202,8 +202,7 @@ asmlinkage void do_syscall_trace_leave(struct pt_regs *regs)
 	int step;
 
 	if (unlikely(current->audit_context))
-		audit_syscall_exit(AUDITSC_RESULT(regs->gpr[11]),
-				   regs->gpr[11]);
+		audit_syscall_exit(regs);
 
 	step = test_thread_flag(TIF_SINGLESTEP);
 	if (step || test_thread_flag(TIF_SYSCALL_TRACE))
-- 
1.7.6


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-29  8:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29  0:46 [PATCH 1/2] OpenRISC: Fix audit_syscall_exit() usage Richard Weinberger
2012-02-29  0:46 ` [PATCH 2/2] OpenRISC: IRQ: Include module.h Richard Weinberger
2012-02-29  7:49   ` Jonas Bonn
2012-02-29  8:39     ` Richard Weinberger
2012-02-29  8:56       ` Jonas Bonn
2012-02-29  7:46 ` [PATCH 1/2] OpenRISC: Fix audit_syscall_exit() usage Jonas Bonn
2012-02-29  8:34   ` Richard Weinberger
2012-02-29  8:48     ` Jonas Bonn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox