]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - arch/openrisc/include/asm/syscall.h
syscalls: Remove start and number from syscall_get_arguments() args
[thirdparty/kernel/stable.git] / arch / openrisc / include / asm / syscall.h
index 2db9f1cf0694c0f2c6bdaec77953f62fb4fe6372..72607860cd559b835c39d34d55eaabeb1c496cce 100644 (file)
@@ -56,11 +56,9 @@ syscall_set_return_value(struct task_struct *task, struct pt_regs *regs,
 
 static inline void
 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
-                     unsigned int i, unsigned int n, unsigned long *args)
+                     unsigned long *args)
 {
-       BUG_ON(i + n > 6);
-
-       memcpy(args, &regs->gpr[3 + i], n * sizeof(args[0]));
+       memcpy(args, &regs->gpr[3], 6 * sizeof(args[0]));
 }
 
 static inline void