From: Cheng Renquan Subject: [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Date: Wed, 14 Jan 2009 17:01:33 +0800 Message-ID: <1231923693-17968-1-git-send-email-crquan@gmail.com> References: <91b13c310901122126p346aa905g8233ed55ab18f902@mail.gmail.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=owhNKFALnmfu+Ff+//N5VZiAC/ndxOQ3jwfsIFAM3pY=; b=GtGRWNf6/VgABQF7xf58m6ZJ+tIRJJDAGC+WL8UFTpFUHyjE0AA/HwkcLnmouyZKmd 0NJg9kdMJDaVNVzV07f6tFM/WEUYJHN+aqmTI3n7dkqJBBRiQypAXvutqAEGqSRGF8gM HgH3v8aqLjwzbraspGIxivI5juvlnx+ZX8w6w= In-Reply-To: <91b13c310901122126p346aa905g8233ed55ab18f902@mail.gmail.com> Sender: linux-alpha-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Richard Henderson , Bastian Blank , Ivan Kokshaysky Cc: Al Viro , David Howells , cr_quan@163.com, linux-alpha@vger.kernel.org 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 --- arch/alpha/kernel/entry.S | 3 ++- arch/alpha/kernel/osf_sys.c | 2 -- fs/pipe.c | 5 ----- include/linux/fs.h | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S index f77345b..192b624 100644 --- a/arch/alpha/kernel/entry.S +++ b/arch/alpha/kernel/entry.S @@ -903,8 +903,9 @@ sys_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 diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index 18a3ea1..e18e135 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -46,8 +46,6 @@ #include #include -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 diff --git a/fs/pipe.c b/fs/pipe.c index 8916971..6b6ad78 100644 --- 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. diff --git a/include/linux/fs.h b/include/linux/fs.h index 6022f44..9c0494c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1875,7 +1875,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); -- 1.6.0.6