Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zhe.he@windriver.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>

authored by

He Zhe and committed by
Matt Turner
15b9e384 6208721f

+6
+6
arch/alpha/include/asm/syscall.h
··· 9 9 return AUDIT_ARCH_ALPHA; 10 10 } 11 11 12 + static inline long syscall_get_return_value(struct task_struct *task, 13 + struct pt_regs *regs) 14 + { 15 + return regs->r0; 16 + } 17 + 12 18 #endif /* _ASM_ALPHA_SYSCALL_H */