Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3116998ybi; Thu, 18 Jul 2019 21:21:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqw27xAogYXxOjqcRmWifieTAJS30ZPemPSd6gJjLzVubYVgOk1OJiEK3sLrLH81D3FS0fUH X-Received: by 2002:a17:90a:35e5:: with SMTP id r92mr56155766pjb.34.1563510084862; Thu, 18 Jul 2019 21:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563510084; cv=none; d=google.com; s=arc-20160816; b=YBt6fUO00tLkYwgknZi8YpujRtkITByuiF7aivHeL35Z5TzI2Jn5dOPjq88M/pqllw 3huhBqFlhCLe6e/uEnYwTq3yQrRLRERsRgw9OeXJ3A7AuSC16GiYRy184rxrVrUTFhUg YhyO+ug2Gnpe6w+wVCEggkoTmMsaCSTG33V9qDg4iQHnbGkcBEwT4lzge79Y9kcQkm1s RX1FkqF0FPxoh1lynlxCBBTBJffl16vDDeRR++GGNQoqph2ZDUvmd+Y+07JpvhkYSkw0 N7wTmYgFTuShqUwgAFBon6A4T1DH2JNGIdi9W3KnZyGNGU1K5OJmPNgOeoQBzxz2ffHD NnTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:dkim-signature; bh=y7QcXz6snFzqEHX9oNiwROmLSfrbhKnVywQpaDFxKjU=; b=Oo6CihrjKL55CeHZYKElhFgZEAR/y0Pw9AnAnTxns56OGWX2eTuXfabg/tBgY8avvL xQjchd6jd12x14ZkdLj+3QI6ojIlW08etEX9WSU4LTuLVj8XcuLySOAzPAHUqHKxv5ll uNi5bJnvD5LHozjI1RC+7EKXsw4qQf72VQeUDYp+v96yNpQYBHjWlPmwlH3cub0YzQZQ 36AEuiOgFxXkz2LVzorzOaj+MZLMXFM9quC78oB6IVkwUepuPytgEOlYGx7PKGWrRoaI bovKRMESsf58fVoXsNgBG6I8O6QohlRQcdf8uc9itgJzJyv7haUrNnmCPNfr5R/jRE3E JSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=XBMc40+z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si695336pga.99.2019.07.18.21.21.09; Thu, 18 Jul 2019 21:21:24 -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=@sifive.com header.s=google header.b=XBMc40+z; 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 S2389681AbfGSEUM (ORCPT + 99 others); Fri, 19 Jul 2019 00:20:12 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:34781 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727152AbfGSEUD (ORCPT ); Fri, 19 Jul 2019 00:20:03 -0400 Received: by mail-io1-f68.google.com with SMTP id k8so55763924iot.1 for ; Thu, 18 Jul 2019 21:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=y7QcXz6snFzqEHX9oNiwROmLSfrbhKnVywQpaDFxKjU=; b=XBMc40+zE5hV9zvUK7QKYf84WeaZeVOkHEc+Ym7qahSCly2JPuO+wQ8TMLmOlquVIx ZOh7vrznORPoqN9Tk5Vy4ScOe7tXXzyVDkJmHmgSqcKTiL1JAUpA3JP47Z74JkvyMKoG Vru5wrI101h3kL1Fmmr22gglG4E6Gg7M9VEp7u6I4WoKhlt+iT9Hefknr+x05v9NdXh3 Ol6fNQLRfAYllDwOtTVJulMat9PzO4gQsnKKY1BKcAINbgC1gOsqYc6NzQ5+wfbg8jar 054ZQEV4ZYt2ryIpvydkJL2E2i9kvSUaTHhVznB3dTk8d0jWQU/WsRsAfLEAHW/cGuzf sZfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=y7QcXz6snFzqEHX9oNiwROmLSfrbhKnVywQpaDFxKjU=; b=dSdO07Bv9F81VSfGP6Zi9Rat3VUf6hfXWY1LazUmyuF4FSjPZHs9jAHadTLWUOAkky CMkO6tXcwiUfEMYpnN6+V4Rl17MAUFCxkMJSZ/uw/KsMHtdMoELaxwMH5cF8aFiJtNyM t9s3sncEJRKxKSbW+nHJlViJFZThNAHzYngMJofVDadnsuEErwruUkTelIRby8kWYUNQ vUdhet/U3TWfS/IKI/Nl7bmTj4le+OwA91GR4rf/M2ocHrMaVMeKMdkSCQSXQcwhXiD9 nWEsKOJge94Ews1nxVaMvTcIrFlJMAl92QdOcyodT0UJMgUHR3CMso4QQiBzDfxEObhd 8D/w== X-Gm-Message-State: APjAAAWFn8eYOldpfxkRNJXPg3nxnsdeljN8ro3/3B0vYwTIfY90WU/J aS3Gn4h0Od3QBK4fId/lM3gNBQ== X-Received: by 2002:a5d:9749:: with SMTP id c9mr48787103ioo.258.1563510003006; Thu, 18 Jul 2019 21:20:03 -0700 (PDT) Received: from localhost (67-0-62-24.albq.qwest.net. [67.0.62.24]) by smtp.gmail.com with ESMTPSA id u4sm31205266iol.59.2019.07.18.21.20.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 21:20:02 -0700 (PDT) Date: Thu, 18 Jul 2019 21:20:01 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: linux-riscv@lists.infradead.org cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, christian@brauner.io Subject: [PATCH] riscv: enable sys_clone3 syscall for rv64 Message-ID: User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the sys_clone3 syscall for RV64. We simply include the generic version. Tested by running the program from https://lore.kernel.org/lkml/20190716130631.tohj4ub54md25dys@brauner.io/ and verifying that it completes successfully. Signed-off-by: Paul Walmsley Cc: Christian Brauner --- arch/riscv/include/uapi/asm/unistd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h index 0e2eeeb1fd27..13ce76cc5aff 100644 --- a/arch/riscv/include/uapi/asm/unistd.h +++ b/arch/riscv/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #ifdef __LP64__ #define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_SET_GET_RLIMIT +#define __ARCH_WANT_SYS_CLONE3 #endif /* __LP64__ */ #include -- 2.22.0