From patchwork Tue Jul 12 01:41:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 71763 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp220916qga; Mon, 11 Jul 2016 18:37:27 -0700 (PDT) X-Received: by 10.98.65.2 with SMTP id o2mr40043160pfa.97.1468287447065; Mon, 11 Jul 2016 18:37:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zs5si3842249pab.226.2016.07.11.18.37.26; Mon, 11 Jul 2016 18:37:27 -0700 (PDT) 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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932542AbcGLBhV (ORCPT + 30 others); Mon, 11 Jul 2016 21:37:21 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33409 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752633AbcGLBhT (ORCPT ); Mon, 11 Jul 2016 21:37:19 -0400 Received: by mail-pf0-f170.google.com with SMTP id i123so812013pfg.0 for ; Mon, 11 Jul 2016 18:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+ZuJOrJex0+CJYRAOqcfxfUXJwLJETbeeOjUZfbveHI=; b=dBrNi4mlOK9OMLya+cVXRL0ryLFeItzB2K1glmgIvrZDN6FoK2KTubVyh1baMnev25 9GcOauLxZJt9JpHSqF+ssVQHX20E4siUzczxVwdoH24SJZ/C8w6u77WF08S7offWBylW 2SLzMrnZIBtH4X6y9H00NFjke4jgM75Wszo+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+ZuJOrJex0+CJYRAOqcfxfUXJwLJETbeeOjUZfbveHI=; b=Z0pigU7mcr3FnLGsVWf22eJPVSUML7M1LpCI0Gbm3PiTYIDAt4k1YZJ0B4ror7LMIu N4Cu5iljR+if2QTnAm1N8LOqoaGdGCGAhxEu/mAMh6bJ/Z6tFt7J2qEM/b1Cj9thiDmu fy47HrTXBAih9oWCQVsnuFwXpevXeW6x1SShfHZHZDA9rqXLqii9syCXiLSyzDK33IvC 8vWU/CROmjKYPxy8cBcR0l5cY0ltbr9XtBFSWqZ0olIY3gRJ2i3RMeWS/qDTFTuUhAXy Zvfw7cc3amDn40f2enQm1LyT/f4z6OikWqHWeDR35PRQT0+1zaE/FHvmsjxcz0JVTfGC 0wAA== X-Gm-Message-State: ALyK8tJZpCODfM3m+pl/ibbmlxmjAh5xwQxiaNBFjDHtDRG4ox/YffNpV4xWlGX25e5sQ9Z3 X-Received: by 10.98.81.1 with SMTP id f1mr39996224pfb.33.1468287438479; Mon, 11 Jul 2016 18:37:18 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id n17sm6807309pfb.38.2016.07.11.18.37.17 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 11 Jul 2016 18:37:18 -0700 (PDT) From: AKASHI Takahiro To: ebiederm@xmission.com, vgoyal@redhat.com, dyoung@redhat.com, bhe@redhat.com, bauerman@linux.vnet.ibm.com, arnd@arndb.de Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, AKASHI Takahiro Subject: [RFC 1/3] syscall: add kexec_file_load to generic unistd.h Date: Tue, 12 Jul 2016 10:41:59 +0900 Message-Id: <20160712014201.11456-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160712014201.11456-1-takahiro.akashi@linaro.org> References: <20160712014201.11456-1-takahiro.akashi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently kexec_file_load is supported only on x86, but it will be supported on powerpc and arm64 in near future. Since both archs use asm-generic/unistd.h, this patch adds the entry to this file. Signed-off-by: AKASHI Takahiro --- include/uapi/asm-generic/unistd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.9.0 diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index a26415b..9ead10f 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -724,9 +724,15 @@ __SYSCALL(__NR_copy_file_range, sys_copy_file_range) __SC_COMP(__NR_preadv2, sys_preadv2, compat_sys_preadv2) #define __NR_pwritev2 287 __SC_COMP(__NR_pwritev2, sys_pwritev2, compat_sys_pwritev2) +#define __NR_kexec_file_load 288 +#ifdef CONFIG_KEXEC_FILE +__SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) +#else +__SYSCALL(__NR_kexec_file_load, sys_ni_syscall) +#endif /* CONFIG_KEXEC_FILE */ #undef __NR_syscalls -#define __NR_syscalls 288 +#define __NR_syscalls 289 /* * All syscalls below here should go away really,