public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch 1/2] ia32: use generic sys_pipe()
@ 2009-07-22  9:08 Amerigo Wang
  2009-07-22  9:08 ` [Patch 2/2] xtensa: " Amerigo Wang
  2009-08-04 12:24 ` [Patch 1/2] ia32: " Ingo Molnar
  0 siblings, 2 replies; 11+ messages in thread
From: Amerigo Wang @ 2009-07-22  9:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, mingo, Al Viro, Amerigo Wang, Linus Torvalds


As suggested by Al, it's better to use the generic sys_pipe() for
ia32.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
CC: Linus Torvalds <torvalds@linux-foundation.org>

---
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
index e590261..ba331bf 100644
--- a/arch/x86/ia32/ia32entry.S
+++ b/arch/x86/ia32/ia32entry.S
@@ -537,7 +537,7 @@ ia32_sys_call_table:
 	.quad sys_mkdir
 	.quad sys_rmdir		/* 40 */
 	.quad sys_dup
-	.quad sys32_pipe
+	.quad sys_pipe
 	.quad compat_sys_times
 	.quad quiet_ni_syscall			/* old prof syscall holder */
 	.quad sys_brk		/* 45 */
diff --git a/arch/x86/ia32/sys_ia32.c b/arch/x86/ia32/sys_ia32.c
index 085a8c3..9f55271 100644
--- a/arch/x86/ia32/sys_ia32.c
+++ b/arch/x86/ia32/sys_ia32.c
@@ -189,20 +189,6 @@ asmlinkage long sys32_mprotect(unsigned long start, size_t len,
 	return sys_mprotect(start, len, prot);
 }
 
-asmlinkage long sys32_pipe(int __user *fd)
-{
-	int retval;
-	int fds[2];
-
-	retval = do_pipe_flags(fds, 0);
-	if (retval)
-		goto out;
-	if (copy_to_user(fd, fds, sizeof(fds)))
-		retval = -EFAULT;
-out:
-	return retval;
-}
-
 asmlinkage long sys32_rt_sigaction(int sig, struct sigaction32 __user *act,
 				   struct sigaction32 __user *oact,
 				   unsigned int sigsetsize)

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-09-18  9:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22  9:08 [Patch 1/2] ia32: use generic sys_pipe() Amerigo Wang
2009-07-22  9:08 ` [Patch 2/2] xtensa: " Amerigo Wang
2009-07-22 10:10   ` Johannes Weiner
2009-07-23  9:47     ` Amerigo Wang
2009-07-23 11:18       ` Johannes Weiner
2009-07-24  9:04         ` Amerigo Wang
2009-08-04 12:24 ` [Patch 1/2] ia32: " Ingo Molnar
2009-08-05 11:38   ` Amerigo Wang
2009-09-12 13:30   ` Al Viro
2009-09-12 14:48     ` Al Viro
2009-09-18  9:46     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox