diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2019-03-18 02:29:38 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-03-20 21:10:10 -0400 |
commit | 92f922f35078245e2acbafcf74fb1947dbbac398 (patch) | |
tree | 02613197fb22352230fa58bab5462cfca37d2c3c /arch/m68k | |
parent | d093153431dc6e5982ec77aabe31fa38d2041ac0 (diff) | |
download | linux-stable-92f922f35078245e2acbafcf74fb1947dbbac398.tar.gz linux-stable-92f922f35078245e2acbafcf74fb1947dbbac398.tar.bz2 linux-stable-92f922f35078245e2acbafcf74fb1947dbbac398.zip |
m68k: define syscall_get_arch()
syscall_get_arch() is required to be implemented on all architectures
in addition to already implemented syscall_get_nr(),
syscall_get_arguments(), syscall_get_error(), and
syscall_get_return_value() functions in order to extend the generic
ptrace API with PTRACE_GET_SYSCALL_INFO request.
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Paul Moore <paul@paul-moore.com>
Cc: Elvira Khabirova <lineprinter@altlinux.org>
Cc: Eugene Syromyatnikov <esyr@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: linux-m68k@lists.linux-m68k.org
Cc: linux-audit@redhat.com
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/syscall.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/syscall.h b/arch/m68k/include/asm/syscall.h new file mode 100644 index 000000000000..d4d7deda8d50 --- /dev/null +++ b/arch/m68k/include/asm/syscall.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_M68K_SYSCALL_H +#define _ASM_M68K_SYSCALL_H + +#include <uapi/linux/audit.h> + +static inline int syscall_get_arch(void) +{ + return AUDIT_ARCH_M68K; +} + +#endif /* _ASM_M68K_SYSCALL_H */ |