From patchwork Mon Jul 3 23:09:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 115517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp866762vqx; Mon, 3 Jul 2023 17:09:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vVLPO6w8aWRa9SaFwLaoJmD6ilCWQ5iCoMQhga/R67kcK0mtAlTFkzJqEQvBQgNqBz34f X-Received: by 2002:a4a:e90f:0:b0:563:3b56:5dc1 with SMTP id bx15-20020a4ae90f000000b005633b565dc1mr6828725oob.0.1688429344055; Mon, 03 Jul 2023 17:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688429344; cv=none; d=google.com; s=arc-20160816; b=pbzt8lXH1m2F/TwTVwtV8mOcGjLqfsgEh017gJb+rTi1zsuyGzyvckG1KsD+OHr9LW JRcZz40FydzQ4BfA0+j4HIhc2xNx95WTEIzjVLuTXXlqtb+mnU5QsVog5YD26JP9WJqp asyRK/DYqStyRAE8Dw7HeM/Lcpob6qhzXKH2lGrrgy7PgecKpkhiru4rB32QUQg8xR9k KGdgKhyesE2w/m36TtWLlod84ScXul6LgZ/6i4fDw3w9AczAXeYjBgdw4TC9pMnN5BR9 1CJTgbHTp7W4+7uBFkZF53mbHBBy1y4ZfKmNxvS8x0K1bWiOWhKchqibi4RtwgknRKFG CxjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/0CU48Zw70eP8gCcZfPtoIrEyWctIOGQrz7h9ITawzM=; fh=XhR+AoD41NZmGb5MOnXh2eSOV9BSLuHOxe88RvNZOk4=; b=qKqaVJ8YDkhthWSyd29QIaoWID6ZuKbO5kzB0Y+3MX2Z6hEjziMUEJErX1fU1y1AXD aeuSZoJt+cvo+6M9YPkmwoAjR5xsy/5kUeRr6JBuE5CKi7kPk72Kma3viKVENyHwnDVZ NdhbHHfpla2lxQwC9QkK3CqAU/fotks9xWTsQCsZqmjV0LOyQckTawzZDm7R4HgNYY6m RXsrEU6lzvOLTz2HqJsmt8CZJeB7e9AYhgpOsTQKo5DCPue5s+rc3WQQn2BKZDdTuShQ nOyROUo6loqOxummyou3v61g2yY41e7EfKqeYXlntQDXc90fmW5G0T3jd8MYYwYSc9Jl 5xWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="zFM/eyPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x184-20020a6386c1000000b0054fd504e80asi2266305pgd.542.2023.07.03.17.08.51; Mon, 03 Jul 2023 17:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="zFM/eyPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjGCXJp (ORCPT + 99 others); Mon, 3 Jul 2023 19:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbjGCXJn (ORCPT ); Mon, 3 Jul 2023 19:09:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3682B107 for ; Mon, 3 Jul 2023 16:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=/0CU48Zw70eP8gCcZfPtoIrEyWctIOGQrz7h9ITawzM=; b=zFM/eyPbRLV1VXvvy01sbruHyF zvQxPWumvh7k7b/Ri2n3voYL3q/5/or6nGHWQ0SDD24B5Ak905Sii0pBoPvSdSnmhuKwtVwtnL2/l BPfC+xyGNrxdj0ZnHarErKnH05H7yrlnWkw3f4BQ+ir44ZVROBNEumaF9s/6VXnstL2QtdJEQt+n0 A34BlqNAqvbNc+tH101aCbq3jvEj+6Edy9gJP8HCv6CO1vrhta8NOqUPPfOHwz/aBGQtyDEe8cNRM 85SOboWbiKBhhhW1n3l68nQ9KiKu20WsnKmbcTd9wDmTTimZYTzcLkGgNNt6kvsF0LOmuIIs7Ajz8 9pSWiSMQ==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qGSfs-00BcGy-2I; Mon, 03 Jul 2023 23:09:40 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Dinh Nguyen , Christian Brauner Subject: [PATCH RESEND] nios2: support clone3() syscall Date: Mon, 3 Jul 2023 16:09:40 -0700 Message-ID: <20230703230940.17627-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770446487556791365?= X-GMAIL-MSGID: =?utf-8?q?1770446487556791365?= Add support for the clone3() syscall to prevent a warning from checksyscalls.sh: :1517:2: warning: #warning syscall clone3 not implemented [-Wcpp] Signed-off-by: Randy Dunlap Cc: Dinh Nguyen Cc: Christian Brauner --- Is there some reason that NIOS2 should not (does not) support clone3()? arch/nios2/include/uapi/asm/unistd.h | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/nios2/include/uapi/asm/unistd.h b/arch/nios2/include/uapi/asm/unistd.h --- a/arch/nios2/include/uapi/asm/unistd.h +++ b/arch/nios2/include/uapi/asm/unistd.h @@ -22,6 +22,7 @@ #define __ARCH_WANT_STAT64 #define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_TIME32_SYSCALLS +#define __ARCH_WANT_SYS_CLONE3 /* Use the standard ABI for syscalls */ #include