]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
do_pipe cleanup: drop its last user in arch/alpha/
authorCheng Renquan <crquan@gmail.com>
Wed, 14 Jan 2009 09:01:33 +0000 (17:01 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:43:58 +0000 (14:43 -0400)
The last user of do_pipe is in arch/alpha/, after replacing it with
do_pipe_flags, the do_pipe can be totally dropped.

Signed-off-by: Cheng Renquan <crquan@gmail.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/kernel/entry.S
arch/alpha/kernel/osf_sys.c
fs/pipe.c
include/linux/fs.h

index e4a54b615894f270b97fbf3a9ddd348e2abcae3a..b45d913a51c368881b4311d1f1887566829b09a8 100644 (file)
@@ -903,8 +903,9 @@ sys_alpha_pipe:
        stq     $26, 0($sp)
        .prologue 0
 
+       mov     $31, $17
        lda     $16, 8($sp)
-       jsr     $26, do_pipe
+       jsr     $26, do_pipe_flags
 
        ldq     $26, 0($sp)
        bne     $0, 1f
index ae41f097864b8ccc1ee49622dd96e6a88d8d4f39..42ee05981e7173d39ac6e047dabce5b46075669b 100644 (file)
@@ -46,8 +46,6 @@
 #include <asm/hwrpb.h>
 #include <asm/processor.h>
 
-extern int do_pipe(int *);
-
 /*
  * Brk needs to return an error.  Still support Linux's brk(0) query idiom,
  * which OSF programs just shouldn't be doing.  We're still not quite
index 14f502b89cf5c2eb46cf8f2fb476d055a7fb118a..df3719562fc1c9b96b75edea9544538c02208f44 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -1034,11 +1034,6 @@ int do_pipe_flags(int *fd, int flags)
        return error;
 }
 
-int do_pipe(int *fd)
-{
-       return do_pipe_flags(fd, 0);
-}
-
 /*
  * sys_pipe() is the normal C calling standard for creating
  * a pipe. It's not the way Unix traditionally does this, though.
index 92734c0012e679cb3326ba25be08f52dce81fbc8..51de83bd8a8738e7d644980feb6de2302c7888f1 100644 (file)
@@ -1881,7 +1881,6 @@ static inline void allow_write_access(struct file *file)
        if (file)
                atomic_inc(&file->f_path.dentry->d_inode->i_writecount);
 }
-extern int do_pipe(int *);
 extern int do_pipe_flags(int *, int);
 extern struct file *create_read_pipe(struct file *f, int flags);
 extern struct file *create_write_pipe(int flags);