* [PATCH] do_pipe cleanup: drop its last user in arch/alpha/
[not found] <91b13c310901122126p346aa905g8233ed55ab18f902@mail.gmail.com>
@ 2009-01-14 9:01 ` Cheng Renquan
2009-01-14 9:09 ` Cheng Renquan
0 siblings, 1 reply; 7+ messages in thread
From: Cheng Renquan @ 2009-01-14 9:01 UTC (permalink / raw)
To: Richard Henderson, Bastian Blank, Ivan Kokshaysky
Cc: Al Viro, David Howells, cr_quan, linux-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: Cheng Renquan <crquan@gmail.com>
---
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 <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
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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] do_pipe cleanup: drop its last user in arch/alpha/
2009-01-14 9:01 ` Cheng Renquan
@ 2009-01-14 9:09 ` Cheng Renquan
2009-01-15 0:19 ` Richard Henderson
0 siblings, 1 reply; 7+ messages in thread
From: Cheng Renquan @ 2009-01-14 9:09 UTC (permalink / raw)
To: Richard Henderson, Bastian Blank, Ivan Kokshaysky
Cc: Al Viro, David Howells, cr_quan, linux-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: Cheng Renquan <crquan@gmail.com>
---
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(-)
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..5c1678e 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -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,
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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] do_pipe cleanup: drop its last user in arch/alpha/
2009-01-14 9:09 ` Cheng Renquan
@ 2009-01-15 0:19 ` Richard Henderson
2009-01-15 8:00 ` Cheng Renquan
0 siblings, 1 reply; 7+ messages in thread
From: Richard Henderson @ 2009-01-15 0:19 UTC (permalink / raw)
To: Cheng Renquan
Cc: Bastian Blank, Ivan Kokshaysky, Al Viro, David Howells, cr_quan,
linux-alpha
Cheng Renquan wrote:
> 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~
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] do_pipe cleanup: drop its last user in arch/alpha/
2009-01-15 0:19 ` Richard Henderson
@ 2009-01-15 8:00 ` Cheng Renquan
0 siblings, 0 replies; 7+ messages in thread
From: Cheng Renquan @ 2009-01-15 8:00 UTC (permalink / raw)
To: Richard Henderson; +Cc: linux-alpha
On Thu, Jan 15, 2009 at 8:19 AM, Richard Henderson <rth@twiddle.net> wrote:
> Cheng Renquan wrote:
>>
>> 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
linux-alpha@vger.kernel.org.
Thanks.
Something like:
---
diff --git a/MAINTAINERS b/MAINTAINERS
index 6f65a26..8dd39f2 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -357,6 +357,7 @@ S: Odd Fixes for 2.4; Maintained for 2.6.
P: Ivan Kokshaysky
M: ink@jurassic.park.msu.ru
S: Maintained for 2.4; PCI support for 2.6.
+L: linux-alpha@vger.kernel.org
AMD GEODE CS5536 USB DEVICE CONTROLLER DRIVER
P: Thomas Dahlmann
>
> r~
>
--
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] do_pipe cleanup: drop its last user in arch/alpha/
@ 2009-01-24 4:43 Cheng Renquan
2009-01-24 4:43 ` [PATCH] add the missing linux alpha port mailling list Cheng Renquan
2009-02-02 20:48 ` [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Andrew Morton
0 siblings, 2 replies; 7+ messages in thread
From: Cheng Renquan @ 2009-01-24 4:43 UTC (permalink / raw)
To: Richard Henderson, linux-alpha
Cc: Ivan Kokshaysky, Al Viro, cr_quan, linux-kernel
The last user of do_pipe is in arch/alpha/, after replacing it with
do_pipe_flags, the do_pipe can be eventually dropped.
Signed-off-by: Cheng Renquan <crquan@gmail.com>
Acked-by: Richard Henderson <rth@twiddle.net>
---
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(-)
diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S
index aa2e50c..9031eb5 100644
--- a/arch/alpha/kernel/entry.S
+++ b/arch/alpha/kernel/entry.S
@@ -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
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index 18a3ea1..5c1678e 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -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,
diff --git a/fs/pipe.c b/fs/pipe.c
index 3a48ba5..365120c 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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] add the missing linux alpha port mailling list
2009-01-24 4:43 [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Cheng Renquan
@ 2009-01-24 4:43 ` Cheng Renquan
2009-02-02 20:48 ` [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Andrew Morton
1 sibling, 0 replies; 7+ messages in thread
From: Cheng Renquan @ 2009-01-24 4:43 UTC (permalink / raw)
To: Richard Henderson, linux-alpha
Cc: Ivan Kokshaysky, Al Viro, cr_quan, linux-kernel
Signed-off-by: Cheng Renquan <crquan@gmail.com>
---
MAINTAINERS | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3fe4dc2..38e8d09 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -357,6 +357,7 @@ S: Odd Fixes for 2.4; Maintained for 2.6.
P: Ivan Kokshaysky
M: ink@jurassic.park.msu.ru
S: Maintained for 2.4; PCI support for 2.6.
+L: linux-alpha@vger.kernel.org
AMD GEODE CS5536 USB DEVICE CONTROLLER DRIVER
P: Thomas Dahlmann
--
1.6.0.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] do_pipe cleanup: drop its last user in arch/alpha/
2009-01-24 4:43 [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Cheng Renquan
2009-01-24 4:43 ` [PATCH] add the missing linux alpha port mailling list Cheng Renquan
@ 2009-02-02 20:48 ` Andrew Morton
1 sibling, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2009-02-02 20:48 UTC (permalink / raw)
To: Cheng Renquan; +Cc: rth, linux-alpha, ink, viro, cr_quan, linux-kernel
On Sat, 24 Jan 2009 12:43:50 +0800
Cheng Renquan <crquan@gmail.com> wrote:
> --- a/arch/alpha/kernel/osf_sys.c
> +++ b/arch/alpha/kernel/osf_sys.c
> @@ -46,7 +46,7 @@
> #include <asm/hwrpb.h>
> #include <asm/processor.h>
>
> -extern int do_pipe(int *);
> +extern int do_pipe_flags(int *, int);
From: Andrew Morton <akpm@linux-foundation.org>
WARNING: externs should be avoided in .c files
#42: FILE: arch/alpha/kernel/osf_sys.c:49:
+extern int do_pipe_flags(int *, int);
total: 0 errors, 1 warnings, 36 lines checked
./patches/do_pipe-drop-its-last-user-in-arch-alpha.patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Please run checkpatch prior to sending patches
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Cheng Renquan <crquan@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/alpha/kernel/osf_sys.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff -puN arch/alpha/kernel/osf_sys.c~do_pipe-drop-its-last-user-in-arch-alpha-checkpatch-fixes arch/alpha/kernel/osf_sys.c
--- a/arch/alpha/kernel/osf_sys.c~do_pipe-drop-its-last-user-in-arch-alpha-checkpatch-fixes
+++ a/arch/alpha/kernel/osf_sys.c
@@ -14,6 +14,7 @@
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/fs.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/stddef.h>
@@ -46,8 +47,6 @@
#include <asm/hwrpb.h>
#include <asm/processor.h>
-extern int do_pipe_flags(int *, 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
_
OK?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-02-02 20:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 4:43 [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Cheng Renquan
2009-01-24 4:43 ` [PATCH] add the missing linux alpha port mailling list Cheng Renquan
2009-02-02 20:48 ` [PATCH] do_pipe cleanup: drop its last user in arch/alpha/ Andrew Morton
[not found] <91b13c310901122126p346aa905g8233ed55ab18f902@mail.gmail.com>
2009-01-14 9:01 ` Cheng Renquan
2009-01-14 9:09 ` Cheng Renquan
2009-01-15 0:19 ` Richard Henderson
2009-01-15 8:00 ` Cheng Renquan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).