Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1962727rwb; Thu, 8 Dec 2022 18:08:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf7XSG1he7TvQIduEmCCl41aburYh7qB+OWvsDtfOxlJW4v2tGLi1Kdquf6IRxU0k2PfxNh0 X-Received: by 2002:a05:6402:5486:b0:467:c3cb:49aa with SMTP id fg6-20020a056402548600b00467c3cb49aamr3593155edb.4.1670551735295; Thu, 08 Dec 2022 18:08:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670551735; cv=none; d=google.com; s=arc-20160816; b=sSkjjHIxWAah5FTyAz9Tc2K43KuTHBiIAUwrVHQC+cRAlNquqJSWcjjoaiXyAUig0X M6czyfNd0En3uW1NAqmXNNp5XrqWul5pp3UbxEr1HEkGjeupAwn+S6obV0FrxYF7miWK JWcIHCwTEOFnRiWxs7X48UYpddUpLrc5KgXiyMyAyNuLcSsgBp/zy7z537AU+J4xqJqN RpIVzvn13MzPJMmCGBFUv1Ws+pcKx2OjSyi01GniP7VK33NykvAJ/MX7noTcQQZUoYk1 B07E6paV70lWf3hqylWM73yjnzO/22UvXf3G0ronX+mpy1xI6FdG5WSbjWsnqFM81zWE bndw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TCJA0NUGNPVahhQQ1Hh45pVrzy/SBPNYQTr7lJlPvZA=; b=EY1m9PUY9FFtbHWS7rwlSsatqeHTfYCdiRlrxiwhoP/pxsL9sgMCn5k7Eiqt2tEAAc 2CFcX0GgqifNEIRF3ZfwGnh+BmUsOwRj1imstjPjNeAuJigsEB+jgaTirJY7tGUf0VE/ f5RFH92NGr58Lrw7GhQG+lr3RxYh3P190hbIOgu+mlXsUH1jiLuNdgmoxKpQpbmkYjTc RnnRQ9myX48sMdPfTgwjBF5L/u9VYB59tz1mYbdOPJQcIUcSf55fnOLy9SoFEaWMaod7 J08ad8QmhwY6ZHDtdJZoJ/QEElOWnnjA1PH8TVpzC+k8WD/LrxVWO15NY1wvxiAwCtrF L9lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AOt6nXIN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a056402519200b00469d667117csi371672edd.167.2022.12.08.18.08.37; Thu, 08 Dec 2022 18:08:55 -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=@kernel.org header.s=k20201202 header.b=AOt6nXIN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbiLICCR (ORCPT + 73 others); Thu, 8 Dec 2022 21:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbiLICCI (ORCPT ); Thu, 8 Dec 2022 21:02:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56E476FF22; Thu, 8 Dec 2022 18:02:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E697862109; Fri, 9 Dec 2022 02:02:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52D0AC433A8; Fri, 9 Dec 2022 02:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670551326; bh=TCJA0NUGNPVahhQQ1Hh45pVrzy/SBPNYQTr7lJlPvZA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AOt6nXINrFhD3l3S8AGeEWGjJdu/iDcqC7dw6pvW9uNXlKU9+xIAWyKn4Udpa9lGu tz23+Orysyyd7QCnMfAMmTRdIab5J2u5iFfwBH7SDRC2cjTlpeEy0W/UQVFCWvhTE/ BND8LOG+YndCLHuyUZHcSDf0qNfb7d+J5YtXfZjhAv35OdXxypIdxGCxrwN2ZBAruR 1QbdsIE7poNWNMJ+rqODLHdTTglEXEnrAEwEu3mEbFSDo9zei6lwpXt+3noXm3np9n yZQ4L8Z5aH6Cb3O4d4QBuqh7fmN1IvANZQOzw7nSV93uF1PVoKjUWeYIl/z2Pn79k7 glwY4NMinObgw== Received: by mail-ej1-f51.google.com with SMTP id kw15so8249048ejc.10; Thu, 08 Dec 2022 18:02:06 -0800 (PST) X-Gm-Message-State: ANoB5plhqQ1XbwcbTxIi6wQ02D68XmLj4c2gLaT0F7fZrjlq9aBAB7M9 n28GZWhFgsP0vqQNEo3XnV/nBXY5CMEQhWUyarI= X-Received: by 2002:a17:906:ee2:b0:78d:3f96:b7aa with SMTP id x2-20020a1709060ee200b0078d3f96b7aamr64216935eji.74.1670551324505; Thu, 08 Dec 2022 18:02:04 -0800 (PST) MIME-Version: 1.0 References: <20221208025816.138712-1-guoren@kernel.org> <20221208025816.138712-7-guoren@kernel.org> <87r0xaw6fh.fsf@all.your.base.are.belong.to.us> In-Reply-To: <87r0xaw6fh.fsf@all.your.base.are.belong.to.us> From: Guo Ren Date: Fri, 9 Dec 2022 10:01:52 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next V10 06/10] riscv: entry: Consolidate ret_from_kernel_thread into ret_from_fork To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: arnd@arndb.de, palmer@rivosinc.com, tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, conor.dooley@microchip.com, heiko@sntech.de, jszhang@kernel.org, lazyparser@gmail.com, falcon@tinylab.org, chenhuacai@kernel.org, apatel@ventanamicro.com, atishp@atishpatra.org, palmer@dabbelt.com, paul.walmsley@sifive.com, mark.rutland@arm.com, zouyipeng@huawei.com, bigeasy@linutronix.de, David.Laight@aculab.com, chenzhongjin@huawei.com, greentime.hu@sifive.com, andy.chiu@sifive.com, ben@decadent.org.uk, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Thu, Dec 8, 2022 at 6:12 PM Bj=C3=B6rn T=C3=B6pel wro= te: > > guoren@kernel.org writes: > > > From: Jisheng Zhang > > > > The ret_from_kernel_thread() behaves similarly with ret_from_fork(), > > the only difference is whether call the fn(arg) or not, this can be > > achieved by testing fn is NULL or not, I.E s0 is 0 or not. Many > > architectures have done the same thing, it make entry.S more clean. > > Nit: "it makes". Okay. > > > Bj=C3=B6rn --=20 Best Regards Guo Ren