]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Alpha: define syscall_get_arch()
authorEric Paris <eparis@redhat.com>
Wed, 19 Mar 2014 23:04:52 +0000 (19:04 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 23 Sep 2014 20:20:03 +0000 (16:20 -0400)
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
arch/alpha/include/asm/syscall.h [new file with mode: 0644]

diff --git a/arch/alpha/include/asm/syscall.h b/arch/alpha/include/asm/syscall.h
new file mode 100644 (file)
index 0000000..88d28eb
--- /dev/null
@@ -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 */