Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbbEISdQ (ORCPT ); Sat, 9 May 2015 14:33:16 -0400 Received: from blu004-omc1s23.hotmail.com ([65.55.116.34]:57140 "EHLO BLU004-OMC1S23.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbbEISdP (ORCPT ); Sat, 9 May 2015 14:33:15 -0400 X-TMN: [a+whKkfSvHAchLRk6I7Gx103RP3Jf3Et] X-Originating-Email: [xili_gchen_5257@hotmail.com] Message-ID: Date: Sun, 10 May 2015 02:33:36 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: rth@twiddle.net, ink@jurassic.park.msu.ru, "mattst88@gmail.com" CC: mcree@orcon.net.nz, Greg Kroah-Hartman , linux-alpha@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: [PATCH] alpha: Wire up missing syscalls Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 May 2015 18:33:10.0817 (UTC) FILETIME=[9A076110:01D08A86] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2289 Lines: 68 The related warnings: CALL scripts/checksyscalls.sh :1238:2: warning: #warning syscall seccomp not implemented [-Wcpp] :1241:2: warning: #warning syscall getrandom not implemented [-Wcpp] :1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp] :1247:2: warning: #warning syscall bpf not implemented [-Wcpp] :1250:2: warning: #warning syscall execveat not implemented [-Wcpp] Signed-off-by: Chen Gang --- arch/alpha/include/asm/unistd.h | 2 +- arch/alpha/include/uapi/asm/unistd.h | 5 +++++ arch/alpha/kernel/systbls.S | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h index c509d30..973280c 100644 --- a/arch/alpha/include/asm/unistd.h +++ b/arch/alpha/include/asm/unistd.h @@ -3,7 +3,7 @@ #include -#define NR_SYSCALLS 511 +#define NR_SYSCALLS 516 #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_STAT64 diff --git a/arch/alpha/include/uapi/asm/unistd.h b/arch/alpha/include/uapi/asm/unistd.h index d214a035..1db20e5 100644 --- a/arch/alpha/include/uapi/asm/unistd.h +++ b/arch/alpha/include/uapi/asm/unistd.h @@ -472,5 +472,10 @@ #define __NR_sched_setattr 508 #define __NR_sched_getattr 509 #define __NR_renameat2 510 +#define __NR_seccomp 511 +#define __NR_getrandom 512 +#define __NR_memfd_create 513 +#define __NR_bpf 514 +#define __NR_execveat 515 #endif /* _UAPI_ALPHA_UNISTD_H */ diff --git a/arch/alpha/kernel/systbls.S b/arch/alpha/kernel/systbls.S index 2478971..5a545d3 100644 --- a/arch/alpha/kernel/systbls.S +++ b/arch/alpha/kernel/systbls.S @@ -529,6 +529,11 @@ sys_call_table: .quad sys_sched_setattr .quad sys_sched_getattr .quad sys_renameat2 /* 510 */ + .quad sys_seccomp + .quad sys_getrandom + .quad sys_memfd_create + .quad sys_bpf + .quad sys_execveat /* 515 */ .size sys_call_table, . - sys_call_table .type sys_call_table, @object -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/