mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] alpha: implement missing syscalls
@ 2011-09-26  9:20 Michael Cree
  2011-09-26  9:20 ` [PATCH 1/2] alpha: Wire up accept4 syscall Michael Cree
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Cree @ 2011-09-26  9:20 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Michael Cree, linux-alpha, linux-kernel, Matt Turner,
	Richard Henderson, Ivan Kokshaysky

Andrew,

Patches to implement missing syscalls on Alpha follow.  I am sending to you
as the first one (the accept4 syscall) is really urgent and I am assuming
that Matt's alpha-next repository is out of action at the moment.  If
acceptable please forward to Linus.

I have tested the accept4 syscall with the test code in commit
de11defebf0000.

The accept4 patch should also be sent to the stable queue. It would be good
to get that into 3.0.x as that is the kernel currently in Debian Unstable
where the missing accept4 syscall is starting to cause havoc.

Cheers
Michael.

Michael Cree (2):
  alpha: Wire up accept4 syscall.
  alpha: Wire up sendmmsg syscall

 arch/alpha/include/asm/unistd.h |    4 +++-
 arch/alpha/kernel/systbls.S     |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)

-- 
1.7.4.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] alpha: Wire up accept4 syscall.
  2011-09-26  9:20 [PATCH 0/2] alpha: implement missing syscalls Michael Cree
@ 2011-09-26  9:20 ` Michael Cree
  2011-09-26  9:20 ` [PATCH 2/2] alpha: Wire up sendmmsg syscall Michael Cree
  2011-09-26 14:41 ` [PATCH 0/2] alpha: implement missing syscalls Matt Turner
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Cree @ 2011-09-26  9:20 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Michael Cree, linux-alpha, linux-kernel, Matt Turner,
	Richard Henderson, Ivan Kokshaysky

Somehow wiring up the accept4 syscall on Alpha was missed long ago.
This commit rectifies that oversight.

Signed-off-by: Michael Cree <mcree@orcon.net.nz>
---
 arch/alpha/include/asm/unistd.h |    3 ++-
 arch/alpha/kernel/systbls.S     |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h
index 4ac48a0..1fbfd64 100644
--- a/arch/alpha/include/asm/unistd.h
+++ b/arch/alpha/include/asm/unistd.h
@@ -457,10 +457,11 @@
 #define __NR_clock_adjtime		499
 #define __NR_syncfs			500
 #define __NR_setns			501
+#define __NR_accept4			502
 
 #ifdef __KERNEL__
 
-#define NR_SYSCALLS			502
+#define NR_SYSCALLS			503
 
 #define __ARCH_WANT_IPC_PARSE_VERSION
 #define __ARCH_WANT_OLD_READDIR
diff --git a/arch/alpha/kernel/systbls.S b/arch/alpha/kernel/systbls.S
index b9c28f3..b24574f 100644
--- a/arch/alpha/kernel/systbls.S
+++ b/arch/alpha/kernel/systbls.S
@@ -520,6 +520,7 @@ sys_call_table:
 	.quad sys_clock_adjtime
 	.quad sys_syncfs			/* 500 */
 	.quad sys_setns
+	.quad sys_accept4
 
 	.size sys_call_table, . - sys_call_table
 	.type sys_call_table, @object
-- 
1.7.4.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] alpha: Wire up sendmmsg syscall
  2011-09-26  9:20 [PATCH 0/2] alpha: implement missing syscalls Michael Cree
  2011-09-26  9:20 ` [PATCH 1/2] alpha: Wire up accept4 syscall Michael Cree
@ 2011-09-26  9:20 ` Michael Cree
  2011-09-26 14:41 ` [PATCH 0/2] alpha: implement missing syscalls Matt Turner
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Cree @ 2011-09-26  9:20 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Michael Cree, linux-alpha, linux-kernel, Matt Turner,
	Richard Henderson, Ivan Kokshaysky


Signed-off-by: Michael Cree <mcree@orcon.net.nz>
---
 arch/alpha/include/asm/unistd.h |    3 ++-
 arch/alpha/kernel/systbls.S     |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h
index 1fbfd64..2207fc6 100644
--- a/arch/alpha/include/asm/unistd.h
+++ b/arch/alpha/include/asm/unistd.h
@@ -458,10 +458,11 @@
 #define __NR_syncfs			500
 #define __NR_setns			501
 #define __NR_accept4			502
+#define __NR_sendmmsg			503
 
 #ifdef __KERNEL__
 
-#define NR_SYSCALLS			503
+#define NR_SYSCALLS			504
 
 #define __ARCH_WANT_IPC_PARSE_VERSION
 #define __ARCH_WANT_OLD_READDIR
diff --git a/arch/alpha/kernel/systbls.S b/arch/alpha/kernel/systbls.S
index b24574f..f3cb4f8 100644
--- a/arch/alpha/kernel/systbls.S
+++ b/arch/alpha/kernel/systbls.S
@@ -521,6 +521,7 @@ sys_call_table:
 	.quad sys_syncfs			/* 500 */
 	.quad sys_setns
 	.quad sys_accept4
+	.quad sys_sendmmsg
 
 	.size sys_call_table, . - sys_call_table
 	.type sys_call_table, @object
-- 
1.7.4.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] alpha: implement missing syscalls
  2011-09-26  9:20 [PATCH 0/2] alpha: implement missing syscalls Michael Cree
  2011-09-26  9:20 ` [PATCH 1/2] alpha: Wire up accept4 syscall Michael Cree
  2011-09-26  9:20 ` [PATCH 2/2] alpha: Wire up sendmmsg syscall Michael Cree
@ 2011-09-26 14:41 ` Matt Turner
  2 siblings, 0 replies; 4+ messages in thread
From: Matt Turner @ 2011-09-26 14:41 UTC (permalink / raw)
  To: Michael Cree
  Cc: Andrew Morton, linux-alpha, linux-kernel, Richard Henderson,
	Ivan Kokshaysky

On Mon, Sep 26, 2011 at 5:20 AM, Michael Cree <mcree@orcon.net.nz> wrote:
> Andrew,
>
> Patches to implement missing syscalls on Alpha follow.  I am sending to you
> as the first one (the accept4 syscall) is really urgent and I am assuming
> that Matt's alpha-next repository is out of action at the moment.  If
> acceptable please forward to Linus.
>
> I have tested the accept4 syscall with the test code in commit
> de11defebf0000.
>
> The accept4 patch should also be sent to the stable queue. It would be good
> to get that into 3.0.x as that is the kernel currently in Debian Unstable
> where the missing accept4 syscall is starting to cause havoc.
>
> Cheers
> Michael.
>
> Michael Cree (2):
>  alpha: Wire up accept4 syscall.
>  alpha: Wire up sendmmsg syscall
>
>  arch/alpha/include/asm/unistd.h |    4 +++-
>  arch/alpha/kernel/systbls.S     |    2 ++
>  2 files changed, 5 insertions(+), 1 deletions(-)
>
> --

Both patches are
Reviewed-by: Matt Turner <mattst88@gmail.com>

Andrew, if you'd be so kind to take these, I'd be grateful.

Thanks,
Matt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-26 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26  9:20 [PATCH 0/2] alpha: implement missing syscalls Michael Cree
2011-09-26  9:20 ` [PATCH 1/2] alpha: Wire up accept4 syscall Michael Cree
2011-09-26  9:20 ` [PATCH 2/2] alpha: Wire up sendmmsg syscall Michael Cree
2011-09-26 14:41 ` [PATCH 0/2] alpha: implement missing syscalls Matt Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®