diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-09-06 03:09:03 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-09-06 03:09:03 -0400 |
commit | b6ddc518520887a62728b0414efbf802a9dfdd55 (patch) | |
tree | 7527a85f79430e8862f19aecd5de42ad5b9fd1b7 | |
parent | efda9452046bdd707b23a85b7846ec33548f84f1 (diff) |
Fix build failure on ppc64 without CONFIG_AUDIT
We shouldn't call audit_syscall_exit() unless it actually exists.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r-- | arch/ppc64/kernel/entry.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/entry.S b/arch/ppc64/kernel/entry.S index ae5d563ad93a..14cd56ac40dd 100644 --- a/arch/ppc64/kernel/entry.S +++ b/arch/ppc64/kernel/entry.S | |||
@@ -282,6 +282,7 @@ _GLOBAL(ppc32_rt_sigsuspend) | |||
282 | bne syscall_exit | 282 | bne syscall_exit |
283 | /* If sigsuspend() returns zero, we are going into a signal handler. We | 283 | /* If sigsuspend() returns zero, we are going into a signal handler. We |
284 | may need to call audit_syscall_exit() to mark the exit from sigsuspend() */ | 284 | may need to call audit_syscall_exit() to mark the exit from sigsuspend() */ |
285 | #ifdef CONFIG_AUDIT | ||
285 | ld r3,PACACURRENT(r13) | 286 | ld r3,PACACURRENT(r13) |
286 | ld r4,AUDITCONTEXT(r3) | 287 | ld r4,AUDITCONTEXT(r3) |
287 | cmpdi 0,r4,0 | 288 | cmpdi 0,r4,0 |
@@ -289,6 +290,7 @@ _GLOBAL(ppc32_rt_sigsuspend) | |||
289 | li r4, 2 /* AUDITSC_FAILURE */ | 290 | li r4, 2 /* AUDITSC_FAILURE */ |
290 | li r5,-4 /* It's always -EINTR */ | 291 | li r5,-4 /* It's always -EINTR */ |
291 | bl .audit_syscall_exit | 292 | bl .audit_syscall_exit |
293 | #endif | ||
292 | b .ret_from_except | 294 | b .ret_from_except |
293 | 295 | ||
294 | _GLOBAL(ppc_fork) | 296 | _GLOBAL(ppc_fork) |