Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5842587rwd; Wed, 24 May 2023 07:29:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Usz6q++OvopBQ5ktnUI+av8qLD15caTV640q+I6Hee2qEE2eNVGKPDW9Y9bqdju838rHi X-Received: by 2002:a17:902:da8a:b0:1af:babd:7b6d with SMTP id j10-20020a170902da8a00b001afbabd7b6dmr10409477plx.52.1684938572469; Wed, 24 May 2023 07:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684938572; cv=none; d=google.com; s=arc-20160816; b=vHzdAc2MIjvrvKxpajKGccD7bHRrEmNkBXWm7lWIp9KGhy/kbUWSZXprBFbJEgN/SL 4PExm7bDViNt2gGrlXIzgNe4mGk5yrvNgfndwvQoOReNqxZ5whCWHghJx66Rj9KGx9XU N0Z72rZvr1JSXGoRtpFJ0CDKsmiEIga9G7UMZY/xNMSD03Vc+DMvT8p22z8cVXztS9zE QxVr0QDAF5+If1N99fGvcHyXPR+n0O2MKwMsPT8g++EdWSdxxXVkcw5pwdiDA8+sNd02 Z0H+xl+dJZx1wYePk7h3z2QlqJw5gmwdv+xXqtFQXbrHNxn62apiCYJIjx6bnsMLRQuU oJMw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KCVdDQUCcI7LTcVQSiTlkpqu+i/JOMxs6BaNLI0J8lg=; b=jQtbYYNPBy4bBRkR3zUSSW6FHz7SOkA/fpBpY1eqNfc3zTbib5vhfzumcIKxbYmtNk Uku4QNMlMsT6rDVyt2WhV5K+LPeRhmtEaFbSKVxV9614vf0f3efB8NkOgOPbRjP1htzA b1S5PuJlEejipruwWH31rqVtMxdO6sDQJmqY4hJqn2M7Z2vVx3JOEXQaZR4y+ADhd5O2 2Mp0G8iBjikvq+hqbnHLLSmgnWlITuO1AQRsWRV4joQu2SqWkfYOxCbvevHLHYCCrRbS NYSYTXmxh26X0ltqzaJIGAb52IkJVYxmWv5TqfBSbG2f/fsjRDJvBLv0du9/2buB5VGe Qikw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ozVFP8vG; 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 i1-20020a17090332c100b001aadb1147e4si8866316plr.456.2023.05.24.07.29.14; Wed, 24 May 2023 07:29:32 -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=desiato.20200630 header.b=ozVFP8vG; 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 S235164AbjEXOMJ (ORCPT + 99 others); Wed, 24 May 2023 10:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbjEXOMH (ORCPT ); Wed, 24 May 2023 10:12:07 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A88B122; Wed, 24 May 2023 07:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KCVdDQUCcI7LTcVQSiTlkpqu+i/JOMxs6BaNLI0J8lg=; b=ozVFP8vGVZJvQa0hBO+yTmwJX0 vHFa5+hNFQ6tZVs0+Dd48VNJxreJ1J/vvjWtybbz61LEwBRKKmeVjCWLXLmk94W2IpFd3IKeXJxy+ DprFbIIdowawc8B8OmsCbvflTPSlMd0fGVbJWmDI6PuhFQiXybHS2QgqNhigN5+U0128MfIVpMX7u p79Sx3Ifu/Qk4hBl3GsETGR7RAhDNtz7YBo9Bot0jN7oIIB0GzVLKfwIGGL2F6bZQlkSFU7dbJuIO 4FoaRuU9rhZvgkihLgJhPxHuytm26WgzHL7404Y/g0DTmVQSaizjr3gzl2GtEfJD9O/4GoKIinxJb NY7jjNbQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q1pDV-004zxB-1J; Wed, 24 May 2023 14:11:53 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AA7F8300282; Wed, 24 May 2023 16:11:52 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6C5AC24A35F45; Wed, 24 May 2023 16:11:52 +0200 (CEST) Date: Wed, 24 May 2023 16:11:52 +0200 From: Peter Zijlstra To: Akira Yokosawa Cc: Mark Rutland , linux-kernel@vger.kernel.org, boqun.feng@gmail.com, corbet@lwn.net, keescook@chromium.org, linux-arch@vger.kernel.org, linux@armlinux.org.uk, linux-doc@vger.kernel.org, paulmck@kernel.org, sstabellini@kernel.org, will@kernel.org Subject: Re: [PATCH 24/26] locking/atomic: scripts: generate kerneldoc comments Message-ID: <20230524141152.GL4253@hirez.programming.kicks-ass.net> References: <20230522122429.1915021-1-mark.rutland@arm.com> <20230522122429.1915021-25-mark.rutland@arm.com> <96d6930b-78b1-4b4c-63e3-c385a764d6e3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96d6930b-78b1-4b4c-63e3-c385a764d6e3@gmail.com> 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 On Wed, May 24, 2023 at 11:03:58PM +0900, Akira Yokosawa wrote: > > * All ops are described as an expression using their usual C operator. > > For example: > > > > andnot: "Atomically updates @v to (@v & ~@i)" > > The kernel-doc script converts "~@i" into reST source of "~**i**", > where the emphasis of i is not recognized by Sphinx. > > For the "@" to work as expected, please say "~(@i)" or "~ @i". > My preference is the former. And here we start :-/ making the actual comment less readable because retarded tooling. > > inc: "Atomically updates @v to (@v + 1)" > > > > Which may be clearer to non-naative English speakers, and allows all > non-native > > > the operations to be described in the same style. > > > > * All conditional ops have their condition described as an expression > > using the usual C operators. For example: > > > > add_unless: "If (@v != @u), atomically updates @v to (@v + @i)" > > cmpxchg: "If (@v == @old), atomically updates @v to @new" > > > > Which may be clearer to non-naative English speakers, and allows all > > Ditto. How about we just keep it as is, and all the rst and html weenies learn to use a text editor to read code comments?