Skip to contentSkip to conversation

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

PATCH New Cheng Renquan 2 participants 4 messages Jan 14, 2009 – Jan 15, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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.

---
 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(-)
arch/alpha/kernel/entry.S +2 -1
index f77345b..192b624 100644
@@ -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
arch/alpha/kernel/osf_sys.c +0 -2
index 18a3ea1..e18e135 100644
@@ -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
fs/pipe.c +0 -5
index 8916971..6b6ad78 100644
@@ -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.
include/linux/fs.h +0 -1
index 6022f44..9c0494c 100644
@@ -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);
Signature · 1 line
1.6.0.6
#2 lore raw

PATCH 1/1 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.

---
 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, 3 insertions(+), 8 deletions(-)
arch/alpha/kernel/entry.S +2 -1
index f77345b..192b624 100644
@@ -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
arch/alpha/kernel/osf_sys.c +1 -1
index 18a3ea1..5c1678e 100644
@@ -46,7 +46,7 @@
 #include <asm/hwrpb.h>
 #include <asm/processor.h>
 
-extern int do_pipe(int *);
+extern int do_pipe_flags(int *, int);
 
 /*
  * Brk needs to return an error.  Still support Linux's brk(0) query idiom,
fs/pipe.c +0 -5
index 8916971..6b6ad78 100644
@@ -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.
include/linux/fs.h +0 -1
index 6022f44..9c0494c 100644
@@ -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);
Signature · 1 line
1.6.0.6
#3 lore raw
Quoted 2 lines · Cheng Renquan

The last user of do_pipe is in arch/alpha/, after replacing it with do_pipe_flags, the do_pipe can be totally dropped.

Ack.

r~

#4 lore raw
Quoted 6 lines · Richard Henderson
Quoted 3 lines · Cheng Renquan

The last user of do_pipe is in arch/alpha/, after replacing it with do_pipe_flags, the do_pipe can be totally dropped.

Ack.

So then who is the committer of this patch? Could you please consider update the MAINTAINERS file? Please add the maintainers' git tree, and this mailling list, I've almost ignored it and forgot to Cc to [email protected].

Thanks.

Something like:

---

MAINTAINERS +1 -0
index 6f65a26..8dd39f2 100644
@@ -357,6 +357,7 @@ S:	Odd Fixes for 2.4; Maintained for 2.6.
 P:	Ivan Kokshaysky
 M:	[email protected]
 S:	Maintained for 2.4; PCI support for 2.6.
+L:	[email protected]
 
 AMD GEODE CS5536 USB DEVICE CONTROLLER DRIVER
 P:	Thomas Dahlmann
Quoted 3 lines

r~

Signature · 7 lines
Cheng Renquan (程任全), Shenzhen, China
Robert Orben  - "To err is human - and to blame it on a computer is
even more so."
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html