Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cris: kill sys_pipe implementation

The cris implementation of sys_pipe only differs from the generic one
by taking the BKL before calling do_pipe which isn't not nessecary.

Just kill the cris implementation and use the generic one.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Christoph Hellwig and committed by
Linus Torvalds
41d88d55 a8f43ee7

-22
-22
arch/cris/kernel/sys_cris.c
··· 27 27 #include <asm/uaccess.h> 28 28 #include <asm/segment.h> 29 29 30 - /* 31 - * sys_pipe() is the normal C calling standard for creating 32 - * a pipe. It's not the way Unix traditionally does this, though. 33 - */ 34 - asmlinkage int sys_pipe(unsigned long __user * fildes) 35 - { 36 - int fd[2]; 37 - int error; 38 - 39 - lock_kernel(); 40 - error = do_pipe(fd); 41 - unlock_kernel(); 42 - if (!error) { 43 - if (copy_to_user(fildes, fd, 2*sizeof(int))) { 44 - sys_close(fd[0]); 45 - sys_close(fd[1]); 46 - error = -EFAULT; 47 - } 48 - } 49 - return error; 50 - } 51 - 52 30 /* common code for old and new mmaps */ 53 31 static inline long 54 32 do_mmap2(unsigned long addr, unsigned long len, unsigned long prot,