Skip to contentSkip to conversation

m68k: define syscall_get_arch()

PATCH Applied Dmitry V. Levin 2 participants 2 messages Mar 17, 2019 – Mar 21, 2019 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH v2 7/13 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.

---

Notes:
v2: unchanged

 arch/m68k/include/asm/syscall.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 arch/m68k/include/asm/syscall.h
arch/m68k/include/asm/syscall.h new file +12 -0
new file mode 100644
index 000000000000..d4d7deda8d50
@@ -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 */
Signature · 1 line
ldv
Applied
#1 lore raw
Quoted 16 lines · Dmitry V. Levin

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.

Quoted 8 lines

---

Notes:
v2: unchanged

 arch/m68k/include/asm/syscall.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 arch/m68k/include/asm/syscall.h

Merged into audit/next, thanks everyone.

Signature · 2 lines
paul moore
www.paul-moore.com