瀏覽代碼

avr32: make architecture sys_clone prototype match asm-generic prototype

This patch will fix the arguments to the architecture sys_clone() function to
match the asm-generic/syscalls.h prototype. In the same go remove the
architecture specific prototype for the same function.

The sys_clone() function is only called from assembly, hence the argument types
were not having any affect.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt 14 年之前
父節點
當前提交
992a88b62c
共有 2 個文件被更改,包括 4 次插入10 次删除
  1. 0 5
      arch/avr32/include/asm/syscalls.h
  2. 4 5
      arch/avr32/kernel/process.c

+ 0 - 5
arch/avr32/include/asm/syscalls.h

@@ -15,11 +15,6 @@
 #include <linux/types.h>
 #include <linux/types.h>
 #include <linux/signal.h>
 #include <linux/signal.h>
 
 
-/* kernel/process.c */
-asmlinkage int sys_clone(unsigned long, unsigned long,
-			 unsigned long, unsigned long,
-			 struct pt_regs *);
-
 /* mm/cache.c */
 /* mm/cache.c */
 asmlinkage int sys_cacheflush(int, void __user *, size_t);
 asmlinkage int sys_cacheflush(int, void __user *, size_t);
 
 

+ 4 - 5
arch/avr32/kernel/process.c

@@ -367,14 +367,13 @@ asmlinkage int sys_fork(struct pt_regs *regs)
 }
 }
 
 
 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
-			 unsigned long parent_tidptr,
-			 unsigned long child_tidptr, struct pt_regs *regs)
+		void __user *parent_tidptr, void __user *child_tidptr,
+		struct pt_regs *regs)
 {
 {
 	if (!newsp)
 	if (!newsp)
 		newsp = regs->sp;
 		newsp = regs->sp;
-	return do_fork(clone_flags, newsp, regs, 0,
-		       (int __user *)parent_tidptr,
-		       (int __user *)child_tidptr);
+	return do_fork(clone_flags, newsp, regs, 0, parent_tidptr,
+			child_tidptr);
 }
 }
 
 
 asmlinkage int sys_vfork(struct pt_regs *regs)
 asmlinkage int sys_vfork(struct pt_regs *regs)