summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2014-03-20 00:04:52 +0100
committerEric Paris <eparis@redhat.com>2014-09-23 22:20:03 +0200
commit0451623ad780a478b11c29736dae506e0059966a (patch)
treea645e0e0a474a26a2c2b4a7a6592e23010e629e5 /arch
parentUM: implement syscall_get_arch() (diff)
downloadlinux-0451623ad780a478b11c29736dae506e0059966a.tar.xz
linux-0451623ad780a478b11c29736dae506e0059966a.zip
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')
-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 */