summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2021-04-26 17:16:29 +0800
committerMatt Turner <mattst88@gmail.com>2021-07-25 22:33:03 -0700
commit15b9e384030cf34de33deed70d670a8dc0fc784a (patch)
tree0e04911bb0ad586f69ab00b4be5eca04731ec903 /arch/alpha
parent6208721f1399912a0a53c77ed86dcc25d3e20efb (diff)
downloadlinux-15b9e384030cf34de33deed70d670a8dc0fc784a.tar.gz
linux-15b9e384030cf34de33deed70d670a8dc0fc784a.tar.bz2
linux-15b9e384030cf34de33deed70d670a8dc0fc784a.zip
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>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/syscall.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/syscall.h b/arch/alpha/include/asm/syscall.h
index 11c688c1d7ec..f21babaeed85 100644
--- a/arch/alpha/include/asm/syscall.h
+++ b/arch/alpha/include/asm/syscall.h
@@ -9,4 +9,10 @@ static inline int syscall_get_arch(struct task_struct *task)
return AUDIT_ARCH_ALPHA;
}
+static inline long syscall_get_return_value(struct task_struct *task,
+ struct pt_regs *regs)
+{
+ return regs->r0;
+}
+
#endif /* _ASM_ALPHA_SYSCALL_H */