From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan Subject: [PATCH 1/3] asm-generic: Add renameat2 syscall Date: Wed, 23 Apr 2014 11:08:05 +0100 Message-ID: <1398247687-13453-2-git-send-email-james.hogan@imgtec.com> References: <1398247687-13453-1-git-send-email-james.hogan@imgtec.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398247687-13453-1-git-send-email-james.hogan@imgtec.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-bounces@lists.openrisc.net Errors-To: linux-bounces@lists.openrisc.net To: Arnd Bergmann , linux-arch@vger.kernel.org Cc: Chen Liqin , James Hogan , linux-c6x-dev@linux-c6x.org, Aurelien Jacquiot , Vineet Gupta , Mark Salter , Will Deacon , linux-kernel@vger.kernel.org, Chris Metcalf , Richard Kuo , linux@lists.openrisc.net, Lennox Wu , Catalin Marinas , linux-hexagon@vger.kernel.org, Guan Xuetao , linux-metag@vger.kernel.org, linux-arm-kernel@lists.infradead.org Add the renameat2 syscall to the generic syscall list, which is used by the following architectures: arc, arm64, c6x, hexagon, metag, openrisc, score, tile, unicore32. Signed-off-by: James Hogan Cc: Arnd Bergmann Cc: linux-arch@vger.kernel.org Cc: Vineet Gupta Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org Cc: Richard Kuo Cc: linux-hexagon@vger.kernel.org Cc: linux-metag@vger.kernel.org Cc: Jonas Bonn Cc: linux@lists.openrisc.net Cc: Chen Liqin Cc: Lennox Wu Cc: Chris Metcalf Cc: Guan Xuetao --- This patch is for v3.15. --- include/uapi/asm-generic/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 6db66783d268..333640608087 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -697,9 +697,11 @@ __SYSCALL(__NR_finit_module, sys_finit_module) __SYSCALL(__NR_sched_setattr, sys_sched_setattr) #define __NR_sched_getattr 275 __SYSCALL(__NR_sched_getattr, sys_sched_getattr) +#define __NR_renameat2 276 +__SYSCALL(__NR_renameat2, sys_renameat2) #undef __NR_syscalls -#define __NR_syscalls 276 +#define __NR_syscalls 277 /* * All syscalls below here should go away really, -- 1.8.1.2