Skip to content

Commit 15b9e38

Browse files
He Zhemattst88
authored andcommitted
alpha: Add syscall_get_return_value()
audit now requires syscall_get_return_value instead of regs_return_value to retrieve syscall return code . Other architectures that support audit have already define this function. Signed-off-by: He Zhe <[email protected]> Signed-off-by: Matt Turner <[email protected]>
1 parent 6208721 commit 15b9e38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/alpha/include/asm/syscall.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ static inline int syscall_get_arch(struct task_struct *task)
99
return AUDIT_ARCH_ALPHA;
1010
}
1111

12+
static inline long syscall_get_return_value(struct task_struct *task,
13+
struct pt_regs *regs)
14+
{
15+
return regs->r0;
16+
}
17+
1218
#endif /* _ASM_ALPHA_SYSCALL_H */

0 commit comments

Comments
 (0)