提交 10f303ae 编写于 作者: C Cheng Renquan 提交者: Al Viro

do_pipe cleanup: drop its last user in arch/alpha/

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: NCheng Renquan <crquan@gmail.com>
Acked-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 723be1f3
...@@ -903,8 +903,9 @@ sys_alpha_pipe: ...@@ -903,8 +903,9 @@ sys_alpha_pipe:
stq $26, 0($sp) stq $26, 0($sp)
.prologue 0 .prologue 0
mov $31, $17
lda $16, 8($sp) lda $16, 8($sp)
jsr $26, do_pipe jsr $26, do_pipe_flags
ldq $26, 0($sp) ldq $26, 0($sp)
bne $0, 1f bne $0, 1f
......
...@@ -46,8 +46,6 @@ ...@@ -46,8 +46,6 @@
#include <asm/hwrpb.h> #include <asm/hwrpb.h>
#include <asm/processor.h> #include <asm/processor.h>
extern int do_pipe(int *);
/* /*
* Brk needs to return an error. Still support Linux's brk(0) query idiom, * 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 * which OSF programs just shouldn't be doing. We're still not quite
......
...@@ -1034,11 +1034,6 @@ int do_pipe_flags(int *fd, int flags) ...@@ -1034,11 +1034,6 @@ int do_pipe_flags(int *fd, int flags)
return error; return error;
} }
int do_pipe(int *fd)
{
return do_pipe_flags(fd, 0);
}
/* /*
* sys_pipe() is the normal C calling standard for creating * sys_pipe() is the normal C calling standard for creating
* a pipe. It's not the way Unix traditionally does this, though. * a pipe. It's not the way Unix traditionally does this, though.
......
...@@ -1881,7 +1881,6 @@ static inline void allow_write_access(struct file *file) ...@@ -1881,7 +1881,6 @@ static inline void allow_write_access(struct file *file)
if (file) if (file)
atomic_inc(&file->f_path.dentry->d_inode->i_writecount); atomic_inc(&file->f_path.dentry->d_inode->i_writecount);
} }
extern int do_pipe(int *);
extern int do_pipe_flags(int *, int); extern int do_pipe_flags(int *, int);
extern struct file *create_read_pipe(struct file *f, int flags); extern struct file *create_read_pipe(struct file *f, int flags);
extern struct file *create_write_pipe(int flags); extern struct file *create_write_pipe(int flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册