From patchwork Fri Jan 22 13:47:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101141 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp686493lbb; Fri, 22 Jan 2016 05:48:22 -0800 (PST) X-Received: by 10.67.7.3 with SMTP id cy3mr4581255pad.100.1453470501994; Fri, 22 Jan 2016 05:48:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9si9703126pas.124.2016.01.22.05.48.21; Fri, 22 Jan 2016 05:48:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753853AbcAVNsR (ORCPT + 30 others); Fri, 22 Jan 2016 08:48:17 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:53507 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463AbcAVNsG (ORCPT ); Fri, 22 Jan 2016 08:48:06 -0500 Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MS22s-1aX6QN29M2-00TGQT; Fri, 22 Jan 2016 14:47:37 +0100 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Russell King Subject: [PATCH] ARM: add copy_file_range system call Date: Fri, 22 Jan 2016 14:47:36 +0100 Message-ID: <6994292.VtUkPlizQj@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:wbEZoiOPWp51bUnzI5owtWUSKAtyrlWSQl2xgriklltcefGlp9k hW4HLgS4G+Dr6c9Vj9E58U2AMfOijZukfKd5Uh2+oVj4sa1cw11QfuhaWkhGeZz0k1ONr7v RTRpq79rx2KojaARmPXY5UmrjZvRkdY7I7+YX7VuVsXz3prw0S5t0JwXegCCXmswoJ3KNcP abjeqSUcevChMzpKuvohw== X-UI-Out-Filterresults: notjunk:1; V01:K0:c3nqqYUWWxM=:oH2UOqdk+rTfLoq4ozh4DX 2VKejEFxRoosoOouszvAH12iHlUmYYVRTaITuvL/7aGvoPp8s/tbzP6k7XxzV9/ijd0Ti14NS cID+0RJvy3o3mpzDcftYWygy8lX4M4AJdRa8JYbOidXrtW6mHxQ2WME+dFPVHaRKaZEHntfFc TH+9PyFW3grRhEFtaOVhp0sw1aasLQTph3pPAbb4JtoictDkBKmJVsDMp9iiwf4ANzkfY32rw VJHHaFzFGW/3LYcxLmZKwcHlI6FuAW1GH5+MUmUf9PPkfPWNmwImz+4vi1UqswgHHTrJ0RUoe 0B/CL/yJIYIZA68TvDjfkawh0h7eskiz9UCx9verGVRzvNswXO1nMTFpNhbYNmvEazTi4QchP +gg4uc6WArW7M21sqYJes8PFFlVnNlqzCnZKSFg4o433vYdN8QcGpJM93sadorUteWKov9Mmm 2lpl/WG45u+fNtMczlQPjBTbvfCeblMF55b6Qmc0p59xe/vdISZBhsfy0WOe/0+mUSDJ2fEla dY4xpxbXv16/JvGh3mB0HbkasY4hCwqbAdDwfBWvXxbOViJA2LJW/QCMZ3ZFoMm9YeycAbvXZ /3r4yH8Rx4aD6UwmpoGAz2SzQyAdUl9H0Fv/CEWc+eT5f7XktBDplChUeKM8J4vByROd0n4YO s47KO1gmT6ilAdJBFb4UsO9/mCJdRVJN9qGKbziOHaCE0Guns9rMK/HLudTVuV1iIfK5S3fYV TXlRpNzwAbfojjvh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The copy_file_range system call was added in linux-4.5 needs to be added to the system call tables on all architectures. This is the change for arch/arm. Signed-off-by: Arnd Bergmann diff --git a/arch/arm/include/uapi/asm/unistd.h b/arch/arm/include/uapi/asm/unistd.h index ede692ffa32e..5dd2528e9e45 100644 --- a/arch/arm/include/uapi/asm/unistd.h +++ b/arch/arm/include/uapi/asm/unistd.h @@ -417,6 +417,7 @@ #define __NR_userfaultfd (__NR_SYSCALL_BASE+388) #define __NR_membarrier (__NR_SYSCALL_BASE+389) #define __NR_mlock2 (__NR_SYSCALL_BASE+390) +#define __NR_copy_file_range (__NR_SYSCALL_BASE+391) /* * The following SWIs are ARM private. diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index ac368bb068d1..8ff325ae6d0e 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S @@ -399,7 +399,8 @@ CALL(sys_execveat) CALL(sys_userfaultfd) CALL(sys_membarrier) - CALL(sys_mlock2) +/* 390 */ CALL(sys_mlock2) + CALL(sys_copy_file_range) #ifndef syscalls_counted .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls #define syscalls_counted