mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesper Nilsson <jesper.nilsson@axis.com>
To: Chen Gang <xili_gchen_5257@hotmail.com>
Cc: Jesper Nilsson <jespern@axis.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-cris-kernel <linux-cris-kernel@axis.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cris: Wire up missing syscalls
Date: Wed, 3 Jun 2015 12:20:03 +0200	[thread overview]
Message-ID: <20150603102003.GB26605@axis.com> (raw)
In-Reply-To: <BLU436-SMTP49B45FDD9C93D53A70991AB9D00@phx.gbl>


On Wed, May 06, 2015 at 03:48:12PM +0200, Chen Gang wrote:
> The related warnings:
> 
>     CALL    scripts/checksyscalls.sh
>   <stdin>:1229:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
>   <stdin>:1232:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
>   <stdin>:1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
>   <stdin>:1238:2: warning: #warning syscall seccomp not implemented [-Wcpp]
>   <stdin>:1241:2: warning: #warning syscall getrandom not implemented [-Wcpp]
>   <stdin>:1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp]
>   <stdin>:1247:2: warning: #warning syscall bpf not implemented [-Wcpp]
>   <stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
> 
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>

Thanks and applied, sorry for the long delay, I had to rewrite the patch a bit
since the v10 and v32 does not have the same standard in prefixing underscores.
Also, to be safe I also bumped the NR_syscalls as below.

---
 arch/cris/arch-v10/kernel/entry.S   |    8 ++++++++
 arch/cris/arch-v32/kernel/entry.S   |    8 ++++++++
 arch/cris/include/asm/unistd.h      |    2 +-
 arch/cris/include/uapi/asm/unistd.h |    8 ++++++++
 4 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/arch/cris/arch-v10/kernel/entry.S b/arch/cris/arch-v10/kernel/entry.S
index 81570fc..d94c520 100644
--- a/arch/cris/arch-v10/kernel/entry.S
+++ b/arch/cris/arch-v10/kernel/entry.S
@@ -955,6 +955,14 @@ sys_call_table:
 	.long sys_process_vm_writev
 	.long sys_kcmp			/* 350 */
 	.long sys_finit_module
+	.long _sys_sched_setattr
+	.long _sys_sched_getattr
+	.long _sys_renameat2
+	.long _sys_seccomp		/* 355 */
+	.long _sys_getrandom
+	.long _sys_memfd_create
+	.long _sys_bpf
+	.long _sys_execveat
 
         /*
          * NOTE!! This doesn't have to be exact - we just have
diff --git a/arch/cris/arch-v32/kernel/entry.S b/arch/cris/arch-v32/kernel/entry.S
index 026a0b2..1c5595a 100644
--- a/arch/cris/arch-v32/kernel/entry.S
+++ b/arch/cris/arch-v32/kernel/entry.S
@@ -875,6 +875,14 @@ sys_call_table:
 	.long sys_process_vm_writev
 	.long sys_kcmp			/* 350 */
 	.long sys_finit_module
+	.long sys_sched_setattr
+	.long sys_sched_getattr
+	.long sys_renameat2
+	.long sys_seccomp		/* 355 */
+	.long sys_getrandom
+	.long sys_memfd_create
+	.long sys_bpf
+	.long sys_execveat
 
 	/*
 	 * NOTE!! This doesn't have to be exact - we just have
diff --git a/arch/cris/include/asm/unistd.h b/arch/cris/include/asm/unistd.h
index 0f40fed..9c23535 100644
--- a/arch/cris/include/asm/unistd.h
+++ b/arch/cris/include/asm/unistd.h
@@ -4,7 +4,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls 360
+#define NR_syscalls 365
 
 #include <arch/unistd.h>
 
diff --git a/arch/cris/include/uapi/asm/unistd.h b/arch/cris/include/uapi/asm/unistd.h
index f3287fa..062b648 100644
--- a/arch/cris/include/uapi/asm/unistd.h
+++ b/arch/cris/include/uapi/asm/unistd.h
@@ -356,5 +356,13 @@
 #define __NR_process_vm_writev	349
 #define __NR_kcmp		350
 #define __NR_finit_module	351
+#define __NR_sched_setattr	352
+#define __NR_sched_getattr	353
+#define __NR_renameat2		354
+#define __NR_seccomp		355
+#define __NR_getrandom		356
+#define __NR_memfd_create	357
+#define __NR_bpf		358
+#define __NR_execveat		359
 
 #endif /* _UAPI_ASM_CRIS_UNISTD_H_ */
-- 
1.7.10.4


/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson@axis.com

  reply	other threads:[~2015-06-03 10:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 13:48 Chen Gang
2015-06-03 10:20 ` Jesper Nilsson [this message]
2015-06-03 11:36   ` Chen Gang
2015-06-03 15:04     ` Jesper Nilsson
2015-06-03 15:23       ` Hans-Peter Nilsson
2015-06-06  0:15         ` Chen Gang
2015-06-06  0:16         ` Chen Gang
2015-06-04  7:20       ` Jesper Nilsson
2015-06-04 12:46         ` Chen Gang
2015-06-04 12:48         ` Chen Gang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150603102003.GB26605@axis.com \
    --to=jesper.nilsson@axis.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jespern@axis.com \
    --cc=linux-cris-kernel@axis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xili_gchen_5257@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome