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: 647163 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rpPmS1bs3z9s36 for ; Tue, 12 Jul 2016 11:40:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=dBrNi4ml; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3rpPmS0WXszDqyY for ; Tue, 12 Jul 2016 11:40:24 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=dBrNi4ml; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rpPhx4ZM0zDqwH for ; Tue, 12 Jul 2016 11:37:21 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=dBrNi4ml; dkim-atps=neutral Received: by mail-pf0-x22d.google.com with SMTP id t190so768689pfb.3 for ; Mon, 11 Jul 2016 18:37:21 -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=XZRP4GJt0uvXEQzZctwDkBIK1kN6G0VOmIekvQXJtFUyArEdgfUnYoxDqq9EheWHY7 j7KRRcXInzqGjcg0uwBLGyHHHcqyysE3IMbe6GJ7+RZNOwEjW518yCl1hpHETG5UXwLb kcMSCogOcKhdS63ZxQP4h//7bWL6VCwieNej8GxmM+//HZaAq+r7aAsMe0UKfLnO9E48 VlIPPYG1os9K/5xPWKsujwJX/BL8SrjQbdW24ayRN9dc8suguUnOQ/eLdHueo4xpW/PE nCo0fmzCDcJNqi7ryPvTlVr+z2ZQR4fsMyVqrspkDrqyigSdfjNUOnezN+t8obx9QLin LEKg== X-Gm-Message-State: ALyK8tI1F0OfFYDQNkJbGW9PvqZs8ALKJ4PVIecO+wJz44MSJBtQgvcLCWfoNzp9BxQCQycO 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 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> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AKASHI Takahiro MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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(-) 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,