summaryrefslogtreecommitdiff
path: root/arch/alpha
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2014-03-19 19:04:52 -0400
committerEric Paris <eparis@redhat.com>2014-09-23 16:20:03 -0400
commit0451623ad780a478b11c29736dae506e0059966a (patch)
treea645e0e0a474a26a2c2b4a7a6592e23010e629e5 /arch/alpha
parent4b4665e13cef9ba66f3ce53548e6bf49530de2e5 (diff)
Alpha: define syscall_get_arch()
Since Alpha supports syscall audit it now needs to have a syscall.h which implements syscall_get_arch() rather than hard coding this value into audit_syscall_entry(). Based-on-patch-by: Richard Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com> Cc: linux-alpha@vger.kernel.org
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/syscall.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/syscall.h b/arch/alpha/include/asm/syscall.h
new file mode 100644
index 000000000000..88d28eb2a566
--- /dev/null
+++ b/arch/alpha/include/asm/syscall.h
@@ -0,0 +1,11 @@
+#ifndef _ASM_ALPHA_SYSCALL_H
+#define _ASM_ALPHA_SYSCALL_H
+
+#include <uapi/linux/audit.h>
+
+static inline int syscall_get_arch(void)
+{
+ return AUDIT_ARCH_ALPHA;
+}
+
+#endif /* _ASM_ALPHA_SYSCALL_H */