VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Dmitry V. Levin <ldv@altlinux.org> 2019-03-18 02:29:01 +0300 committer: Paul Moore <paul@paul-moore.com> 2019-03-20 21:09:05 -0400 commit: 122a43b107420fec4c69d1bf99706cbb0da40ad9 parent: a43e66478ef7a2f8a7b2823b97cdae6605d34a02
Commit Summary:
h8300: define syscall_get_arch()
Diffstat:
1 file changed, 6 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/syscall.h b/arch/h8300/include/asm/syscall.h
index 924990401237..5135910616e2 100644
--- a/arch/h8300/include/asm/syscall.h
+++ b/arch/h8300/include/asm/syscall.h
@@ -8,6 +8,7 @@
 #include <linux/linkage.h>
 #include <linux/types.h>
 #include <linux/ptrace.h>
+#include <uapi/linux/audit.h>
 
 static inline int
 syscall_get_nr(struct task_struct *task, struct pt_regs *regs)
@@ -47,6 +48,11 @@ syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
 	}
 }
 
+static inline int
+syscall_get_arch(void)
+{
+	return AUDIT_ARCH_H8300;
+}
 
 
 /* Misc syscall related bits */