Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2078226lqp; Sun, 24 Mar 2024 02:09:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+E9hBRcgN4jUFgVPkhKiA8mCtCjSzttEdI1FdnlIDBVn95lcUCf3lEUV/+D20BRSBb911jpl3SUM6EiKzwcqMlLaiGg91/CnAbW0b7g== X-Google-Smtp-Source: AGHT+IExOoL3RsMs6fzAypKxMbAj9lOmJXMYfBcvmfb/FM5YZUxMwSLLgSKTkFPAmPbpn/WOTwqF X-Received: by 2002:a05:6830:51:b0:6e6:c931:eb89 with SMTP id d17-20020a056830005100b006e6c931eb89mr3355190otp.35.1711271360801; Sun, 24 Mar 2024 02:09:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711271360; cv=pass; d=google.com; s=arc-20160816; b=zcUO32maSAzzfB8h/BtsWHOR+TaeqptubDluDF3tS+sipFN4/g/FVeIh9+3vAXXPb0 +03l4artxw1+WS2f2oRp3ekU6bsZLdasP3tvdxspceLpCG57FrhxUSg2WU4jpZhZzZKj QQbYjk53deUMuDXJoHsV2OjphlXXoPOceMG9NZk6ki9PEfR2lsziQvMmi8CAz6gkKTIA EgOdIo9fzECvZ+8x/BELdDzwuyHQ1QkglJG76OfuhE0B0k6djHJ2A1x2/3V+bMzCL6BJ XSgKr0ytUbkwL5y1VlsBD3Y5E0Wt14iR3eDQBsYw7QxlBaMDZw35zqyxYJT6r+FY06EK umMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=Rhs1loPtFsL5EIYRvgUlHECbLqphkffPY0MFBefhNnc=; fh=gA2XpmlOWqLbTU8ugI3JhFtEODP3rsP+0P9prNqohr8=; b=s1q5ydtcNAtzJkUPUfXM+Lyq0aY3W8ujgnQAXX91Xs+lF5BzckoDt26PS0nhG68UmX uJUuLeT32qZM+71CxVBEQfgi/FzIsnlv/apN2eMNw6vHzgNONpkVT0+tJnmMbTsgneCg MiUlaxWihX8KtgCyczS+E+KoiFSwMemAV1XOnEXvlGuERIfpJpoOZDCeyGOwvVm5zwgS lSSgxzZFpaQ7LdQ3tTp5B3rx6B7mm3hBb92Jkz9Pk9swRE3hFbAF+Mppxa9BbMHhH64l rdryMNgyc1ALebogovZoSK8Pjv0REeujChu6IBm9aLK75B9YHHsUdsURzjXz/pofeEPP MEQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=adm0li5a; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-112618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p16-20020a05620a113000b00789fb5c309fsi3016061qkk.614.2024.03.24.02.09.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 02:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=adm0li5a; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-112618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C1CA1C21402 for ; Sun, 24 Mar 2024 09:09:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64BF0168B9; Sun, 24 Mar 2024 09:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="adm0li5a" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF32C7F9; Sun, 24 Mar 2024 09:09:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711271349; cv=none; b=dJNPf6XnVKOZiIyGgnLGE0QnPGj7V9+fc+cg+DZgyvGoYbt/b/5XOfui3htLapFn7Z7wvP3A36hV+DJ41Wi8/U15Ktrho6hWWPHt+weu7go1W6iFtJKh82gCMUIIhxc+Ko1Ho7k4gFPz76B/r6h+n0tALE9wBJ8+sCQ8FKNGUNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711271349; c=relaxed/simple; bh=+Rf2sP5k+yxgykPJQTji8BK3SG1Mw51mUBOFY6xa+nY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=GIfjxYXVuYdPbyjwaMiw+UAO9cCBEt7rN9YxtoTHbIyaSUDACxGGNV6riA6GizQ3UwHe+2lrAlM2UHaZTOts1t5YLo4x+oX3Q8G3Vs05b41v/cj02vT1pRnQhPJeUQcZy3Sp6OFZg7fH4x9tmbYtuMD63f6l2syCqzxz8ylpZU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=adm0li5a; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net E312045E37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1711271338; bh=Rhs1loPtFsL5EIYRvgUlHECbLqphkffPY0MFBefhNnc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=adm0li5aTWzfRI45SrW1qaWvHcYmJES1k9KLkhfBn+k6H1bKCODAOPjQeWqjo2sbn vn1Kyx1r0cb3ltOQOYjyRCbuV7T/XOj/pSOf1/NHMvPz/JwL4cVNjxvHTi0vUrIsqx YGfGTw/J3vEH6VO2QVX95J7k/8doGX+/83MwcxkkJzvkTPScr0CpwgpmbHdI2U9tRY 7i0rNY436KnSCKp5D1xe9O5g0I/F4cjiQx4WYHSfFSsLMDX/eX52eBiJV+RTqV314R +7KiRI77xecl64M37DOcsgh+HmPCauxpSvG6ZVsyJqY0cNQ+6y9ShK6wrFSslfusjd 2uWTC0kJI/H+w== Received: from localhost (mdns.lwn.net [45.79.72.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E312045E37; Sun, 24 Mar 2024 09:08:57 +0000 (UTC) From: Jonathan Corbet To: Dan Williams , Matthew Wilcox , Dan Williams Cc: Peter Zijlstra , torvalds@linux-foundation.org, Bjorn Helgaas , Ira Weiny , Jonathan Cameron , Jesse Brandeburg , Ilpo =?utf-8?Q?J=C3=A4rvinen?= , Lukas Wunner , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, linux-doc@vger.kernel.org Subject: Re: [PATCH] cleanup: Add usage and style documentation In-Reply-To: <65ff7a88e93fb_2690d29429@dwillia2-mobl3.amr.corp.intel.com.notmuch> References: <171097196970.1011049.9726486429680041876.stgit@dwillia2-xfh.jf.intel.com> <20240322090630.GA40102@noisy.programming.kicks-ass.net> <65fdd7ae82934_4a98a29429@dwillia2-mobl3.amr.corp.intel.com.notmuch> <65ff7a88e93fb_2690d29429@dwillia2-mobl3.amr.corp.intel.com.notmuch> Date: Sun, 24 Mar 2024 03:08:54 -0600 Message-ID: <871q802dzt.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Dan Williams writes: > Matthew Wilcox wrote: >> On Fri, Mar 22, 2024 at 12:10:38PM -0700, Dan Williams wrote: >> > Peter Zijlstra wrote: >> > > So I despise all that RST stuff. It makes what should be trivially >> > > readable text into a trainwreck. We're coders, we use text editors to >> > > read comments. >> > >> > Ok, I will rip out the RST stuff and just make this a standalone comment. >> >> I would rather you ignored Peter's persistent whining about RST and >> kept the formatting. Dealing with that is definitely the least pleasant part of trying to maintain docs... > Hmm, how about split the difference and teach scripts/kernel-doc to treat > Peter's preferred markup for a C code example as a synonym, i.e. > effectively a search and replace of a line with only: > > Ex. > > ...with: > > .. code-block:: c > > ...within a kernel-doc DOC: section? I'm not convinced that "Ex." is a clearer or more readable syntax, and I'd prefer to avoid adding to the regex hell that kernel-doc already is or adding more special syntax of our own. How about, as Lukas suggested, just using the "::" notation? You get a nice literal block, albeit without the syntax highlighting -- a worthwhile tradeoff, IMO. Thanks, jon