Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10353125rwb; Fri, 25 Nov 2022 03:59:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Zapmn1CAWfVRrEUzuwxqMDsojhgeUoYvWXfvg2ZMy905ytwT/lKGUNaq87Zzd2T/rSn7B X-Received: by 2002:a17:907:378:b0:7ad:db82:d071 with SMTP id rs24-20020a170907037800b007addb82d071mr16292059ejb.200.1669377557128; Fri, 25 Nov 2022 03:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669377557; cv=none; d=google.com; s=arc-20160816; b=nEww15yGPEfVDIgPCzGIQHfH7axk8gVHAlOc4IW1XKNIVJl/sI0rO/+fggTiCU1Voj uYIkvEyrm6nvaiu/jsuvuNd/DOBz05QAd6S0KaHxPfnoQchDox5KxQmW0fWiYCC0IkMl 43J4Xx8coe3ilkzOmQtLbEK+YtLgYIo6o14MyoYzLTsWN495l4OIoK0Y9Ycn7nTA7pw+ Ys9CNCQvopYoVtEvM3LuofweULvvIjMWNPitt+xYll51+TIUSEFDDNNi0ExWLJ96l/6W 0Zhv0QUcIaFgEWs5bMHJ6EKEsEHw87bgACww22IPekjwa/Zordjg3HJdUsrS02THN7Nj B+Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ganGoGk0dGLWUVZJZmO5N8MpSnIzwLlxlJWd5xpG83Q=; b=nD5XThmW3pNczkSQT4YJ7sXsoYtqHQ1Zhe5FOZSVFXCqXJ1zO+xuOrL+Mzl8Yx7NHe zxfuVJ5YYC3qghWKB2WC0Y9I4snPiHwtm0hmlhC+AKGWbDdgGssLSoIeo9Lg51+mK4oe ZgqRhYadhmPn8sFGTN4G+W2jcq341LPYHEiC/L3Q32XxELwt0nBIW2+0BNCTWUm8dCbt bVIIxl5Ap3HUjbuPLez3agShRTWdbKO+SO/Hcn3dzqZme1G7brLM6l5Evr2MTf8VF0e4 itOdFgnrImYqhGEia2wNU6qm4hJByLmgX6MKqQIFYrmNbUR0RdJQMPELhPHFNy3Lzsv6 eNsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=RclqeXPC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv17-20020a17090760d100b0078d49f0df9csi3414763ejc.453.2022.11.25.03.58.51; Fri, 25 Nov 2022 03:59:17 -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=@ventanamicro.com header.s=google header.b=RclqeXPC; 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 S229877AbiKYLpB (ORCPT + 86 others); Fri, 25 Nov 2022 06:45:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiKYLo7 (ORCPT ); Fri, 25 Nov 2022 06:44:59 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A4DF19001 for ; Fri, 25 Nov 2022 03:44:58 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id v8so6056686edi.3 for ; Fri, 25 Nov 2022 03:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ganGoGk0dGLWUVZJZmO5N8MpSnIzwLlxlJWd5xpG83Q=; b=RclqeXPCsvXV295FMJA2FxIFmH1hIIdtE83WJi1sS2G+TBtQqDyYZu42qNcLM3L6v1 60gjZ9vN9VAt/7rkJkryeuBmRONyL1OJLG4o3NnUlcXE++uqtjTZ+dkgwPVyxTE/YO2K RiqNzcS3hLhu/tJeZB7zHbhLzznr/3DQxfMLz4LThA1Bp3HTUe9NpL7v0yrgjfL/qiIe Kt1dqqWBm4rvfIVaUPVyjsWq4Ui/4Vmzh863hv163sDvJH3wjCtHaB99VL0dj/PHkLDl O9Quf7aao/efSpjhi/xnajZL6cbZQdkZI5EqlIUHkORpad55O/fpRIZGQojRIEoDvYwj 5xbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ganGoGk0dGLWUVZJZmO5N8MpSnIzwLlxlJWd5xpG83Q=; b=am9LrX8Wk/wsyWpOatShq8zMK0Ts/1WKMauL9wtaRwzTgwlwR/fMgTtfO/DliwVw7u rxWuXL/ln1KyOaKBB14OZRzOayuqRU+/6bomQUJ4PT8Ee6otLT4zoIf0YmXLq4EiMDfh qGaY7qODXZhu8JWAUKpGIv0Y78r26wwkyXP2K7KCS1YSyZlvt0uy4yUYJvAU2oGfWq9z 3BDAgZffGbqKLfEwt9KmXCdzSadc+5qgLh750sLYUUaLKbz42jQNFmkFPIjW0OeQv9dC jzDq2tNIVhxgHTWLEaZQsosA0HbDe2pINnKTz5ijz7tT8DcfMKaPpW1LqWCvXiLXQRmQ xY4A== X-Gm-Message-State: ANoB5pktjVH2pxoNhdWZ0NcR0JN5H2/o9tN4ifcS02tREQc59/hqmWP2 3JM9+Lj2WEfh7PZZbj1b/tHo3A== X-Received: by 2002:a05:6402:2318:b0:469:10b2:df98 with SMTP id l24-20020a056402231800b0046910b2df98mr30800385eda.115.1669376696729; Fri, 25 Nov 2022 03:44:56 -0800 (PST) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id kz1-20020a17090777c100b0078de26f66b9sm1467428ejc.114.2022.11.25.03.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:44:56 -0800 (PST) Date: Fri, 25 Nov 2022 12:44:54 +0100 From: Andrew Jones To: Conor Dooley Cc: Heiko =?utf-8?Q?St=C3=BCbner?= , Prabhakar , Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Jisheng Zhang , Atish Patra , Anup Patel , Nathan Chancellor , Philipp Tomsich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Biju Das , Lad Prabhakar Subject: Re: [PATCH v4 1/7] riscv: asm: alternative-macros: Introduce ALTERNATIVE_3() macro Message-ID: <20221125114454.yfh2mtctbi3nkud7@kamzik> References: <20221124172207.153718-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221124172207.153718-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <4801607.MHq7AAxBmi@diego> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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, Nov 24, 2022 at 08:05:40PM +0000, Conor Dooley wrote: > On Thu, Nov 24, 2022 at 08:58:41PM +0100, Heiko St?bner wrote: > > Am Donnerstag, 24. November 2022, 20:52:33 CET schrieb Conor Dooley: > > > On Thu, Nov 24, 2022 at 05:22:01PM +0000, Prabhakar wrote: > > > > From: Lad Prabhakar > > > > > > > > Introduce ALTERNATIVE_3() macro. > > > > > > Bit perfunctory I think! There's a lovely comment down below that would > > > make for a better commit message if you were to yoink it. > > > Content looks about what I'd expect to see though. > > > > Also both the comment on the original ALTERNATIVE_2 and the new ALTERNATIVE_3 > > should probably be merged into a single comment explaining this once for all > > ALTERNATIVE_x variants. > > > > Especially with the dma stuff, I'm pretty sure we'll get at least an ALTERNATIVE_4 > > if not even more ;-) . So we defnitly don't want to repeat this multiple times. > > Oh I can promise you that there'll be a #4 ;) I took a stab[*] at cleaning up alternative-macros.h a bit in order to prepare for _3, _4, ..., _42. The idea was to try and find a way to reduce as much duplication as possible, both in the current code and in the new macros. [*] https://lore.kernel.org/all/20221125113959.35328-1-ajones@ventanamicro.com/ Thanks, drew