From patchwork Thu Nov 24 03:21:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 25299 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3166949wrr; Wed, 23 Nov 2022 19:29:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gcgsmQ5dzYVicoLK3uT2/MBcwrpZaqtMKC8bIjIADRuaU8hd9c+Q4prLLMwFBhksIAf1W X-Received: by 2002:a17:907:986b:b0:7ad:b7c2:a2f7 with SMTP id ko11-20020a170907986b00b007adb7c2a2f7mr9947126ejc.227.1669260566634; Wed, 23 Nov 2022 19:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669260566; cv=none; d=google.com; s=arc-20160816; b=MtFbezJn7sv6jkW0F2s/bOi9xzvSW/TiNUoIhz9OoWPRmNI05UUELR1JSG5OL4+z8P /KVZXEGs1i1vg5sUMDyoEw4OkZ5A7GHtwOLh2a/57uKPjVRNtzG5iTfkL6LDRMcOfDUA TQ3O46Ky9vvlrkFpqXFvnQwdcFjrqqIFTBZRDrgNilmgceze4UR/hPaUELdx3TyqiTUR O7dRXTnCTC2a2dVN36RHoTczuRdshbP5IjbhfZEcA0pT65P0hz5CSJccrFLNtWVpjdQH 2Mp5rrFmrNOFQ1cgLj4xwuKUI5L5PE6jSF59CtEfrCwsUXu2N2E/xIc6O7rshRIrC1JX iybw== 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=; b=WSdFLjj89yh0/5OXgg9w37qQ9IcD2HOFoCkf6O/D6izMM0pVTh0xx4xEBx7DspNKoA QUtUUAigLq+Kxte9vHhxA9fUZEJY1dZUn8VobaINxK9IyUfotfzULgNEeTRABun+6XYb FEnuLppbWWwFl7abVP/beaolEemAd+IB00IhFXZyCVE7hWBvs25VgPqWYqLtRvTsQGLv q0kS3OM/gWlhKu+hJ27tb84k0ZFi8nVbfzRYuYCQqLpIMvtjpI1bXrwis/EPX5n3OuO+ DS0NxRw+KNG3iOb1F+fdWWSq1OD2tUJi9Hsqp11CQasgwwN8i4EcgJtb2SmKDePodfkH e9hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FV0+g+vm; 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 y12-20020a056402270c00b004593671898esi16628416edd.611.2022.11.23.19.29.03; Wed, 23 Nov 2022 19:29:26 -0800 (PST) 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=casper.20170209 header.b=FV0+g+vm; 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 S229963AbiKXDVP (ORCPT + 99 others); Wed, 23 Nov 2022 22:21:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbiKXDVN (ORCPT ); Wed, 23 Nov 2022 22:21:13 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34B6AD02D1 for ; Wed, 23 Nov 2022 19:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=FV0+g+vmEupfkxS4tOfXBQQCuc vyYs1LIkXNg39zFCkUQUog+lGgqn5g4k2Srgabz2b0Gla8opOI01o7ELzuKW2OJDf2bqkIkXnE0Xf ZmipRtwC3N0BPuKj6rvarLrYkYRKjaaBbsKw12LHkRe7ajmaSGrvOXG7dCGnnlLTtSjmPbiVbVleA Jj3X1bbKQS7vWfAECK6/SnnvKkHfLKPDVBgZocMYwu4ACtj3Rxzfu/o6YqZwNSPRX4DSW0ZyJG4Cy RNhKVstJKZRD0MySW59hOYjlvheT4y4Z01lqiYcSJTz1OnBzjm6KYxzC+dy7IcaMYKDCXQwf70iBq ILtUKmig==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oy2nd-008Kry-7w; Thu, 24 Nov 2022 03:21:17 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Dinh Nguyen , Christian Brauner Subject: [PATCH] nios2: support clone3() syscall Date: Wed, 23 Nov 2022 19:21:07 -0800 Message-Id: <20221124032107.11223-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 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 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?1750346568200930183?= X-GMAIL-MSGID: =?utf-8?q?1750346568200930183?= 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