Skip to content

Commit

Permalink
Fix build failure on ppc64 without CONFIG_AUDIT
Browse files Browse the repository at this point in the history
We shouldn't call audit_syscall_exit() unless it actually exists.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Sep 6, 2005
1 parent efda945 commit b6ddc51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/ppc64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,15 @@ _GLOBAL(ppc32_rt_sigsuspend)
bne syscall_exit
/* If sigsuspend() returns zero, we are going into a signal handler. We
may need to call audit_syscall_exit() to mark the exit from sigsuspend() */
#ifdef CONFIG_AUDIT
ld r3,PACACURRENT(r13)
ld r4,AUDITCONTEXT(r3)
cmpdi 0,r4,0
beq .ret_from_except /* No audit_context: Leave immediately. */
li r4, 2 /* AUDITSC_FAILURE */
li r5,-4 /* It's always -EINTR */
bl .audit_syscall_exit
#endif
b .ret_from_except

_GLOBAL(ppc_fork)
Expand Down

0 comments on commit b6ddc51

Please sign in to comment.