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

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

+11
+11
arch/alpha/include/asm/syscall.h
··· 1 + #ifndef _ASM_ALPHA_SYSCALL_H 2 + #define _ASM_ALPHA_SYSCALL_H 3 + 4 + #include <uapi/linux/audit.h> 5 + 6 + static inline int syscall_get_arch(void) 7 + { 8 + return AUDIT_ARCH_ALPHA; 9 + } 10 + 11 + #endif /* _ASM_ALPHA_SYSCALL_H */