Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2058801lqo; Mon, 13 May 2024 06:53:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWri0Jwbjqd3auXnikvPvgqlWfU1P7cMBo4tJ8cM8YL9a3BxLaz5QOFR3MdNyAbZw1PRmp7HM3WdjwQj678ro6mJO4AxnPZAiqbFU8Cng== X-Google-Smtp-Source: AGHT+IGH/ET/vF1GYLe/uV/Pmpz+AWyo7QtsGvs8PGRXrOehrUejCn0k352t+CEdljpf0e9puDML X-Received: by 2002:a05:6a20:dc94:b0:1af:a9ad:fbb9 with SMTP id adf61e73a8af0-1afde1c5dcemr7307011637.59.1715608397217; Mon, 13 May 2024 06:53:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715608397; cv=pass; d=google.com; s=arc-20160816; b=KpJkHwY4lGg/wGLmLuPXojhVzqWJr/AjK6eyAn0H86r8suI5v7ZiR8bP/TvehW8Isr e6XRJRms9d2J7appWGvl7d7QEJsysV/O52RgF9eRG8+fmWgfWgLMzp684mPr0AachfaI a3l3POru3dmgV0lvBKyr4FLKAAOnNPm25dcTNMaUaMok9GHPDRbYBhwUGwWJjKdIuSMc 0JdQj8iizawK71WSzugQaQuFeLF4nkgxSUCd1U3mFH3rHor/2LpcHqfVsDiIZhmKZP7U zNxpRfNK/n6YkiqEVr/1a7Xb2sn59Z/HGNBiUIDxFzfxy32d6gFwBimKwcu79wRVnyDf 7nnA== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=jDa7ygJBRT9N2NOt4r2Vw3CrChE0WUo+YyuQWql0zRU=; fh=WUMGEAaC4XQMKTEPXsJ2WDG25w7rwYxck3PNfwVUJ/Q=; b=l9xI3iFbk1LvQQ+c9loVprwmLtjOPAQjAiUV2q8/t71pe4x8YVF10MGIUdDTg39wIi IoU8Q0UcIp+eXPeHLOTSSUZL4PM3XlywU7FTwhCpbNiTC/XcjTmQ08vq7G56VREorYWw pGjgUiu1ICgXg3xxkNll0s8CNS/fFkb22515bFfiycDDDOToTA9BOrqXICXGNWfD8Dql jTXX7NSZSF3QHWrCz+P84xz6QQ9kt/qqO1xBZkh9UD8krEqJYbvg0jRLLofl3dIL6c6u 6gePKDmxkCyRbdi3zJIlEtKmEshyjF0rNgR2oRJbhkrDuKZSS1CAfJVUGGHfbaQ891E8 O06w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cknow.org header.s=key1 header.b=ZCv4ip+v; arc=pass (i=1 spf=pass spfdomain=cknow.org dkim=pass dkdomain=cknow.org dmarc=pass fromdomain=cknow.org); spf=pass (google.com: domain of linux-kernel+bounces-177654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cknow.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341180dc88si9198926a12.489.2024.05.13.06.53.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 06:53:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cknow.org header.s=key1 header.b=ZCv4ip+v; arc=pass (i=1 spf=pass spfdomain=cknow.org dkim=pass dkdomain=cknow.org dmarc=pass fromdomain=cknow.org); spf=pass (google.com: domain of linux-kernel+bounces-177654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cknow.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 50258B2479F for ; Mon, 13 May 2024 13:48:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C604154BE4; Mon, 13 May 2024 13:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cknow.org header.i=@cknow.org header.b="ZCv4ip+v" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 42A5115444B for ; Mon, 13 May 2024 13:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715607952; cv=none; b=HHbHVTwCZpTBDd3WsUjb7TwqWZqVirfKk30+MdlPlh5WDXGuLfwNDp3f8vXbcwzlWDBHLrvr8xps9UwJEzkWvx7C4kmsoP/I/Q/ua5wzKheXd3ae2Z3zoa1yEAJIVKTnRuFqlhxCSwXUm/x9ApmNf+Ars427gkLPb4VuN8LHmyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715607952; c=relaxed/simple; bh=ylIY415x1u+fz98l0xba+ARbUiy+30TF8SbO3zlEu4I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UAJuGzzjqZJ4whWEBcwhi8upnTBlkdzhyjg/ZmsUf4Rh1JInE0kzealOiJt8YNRTEcn0S5qHOJu4Pb1xp74XxhtfSDbwoA3aGoRFmRzEqiyzC+202NE1YiypJQEMf1Zgh8EVkxtoLtpFTSsMLTjQaMa4T3XqWmIV31b3o8uK68U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow.org; spf=pass smtp.mailfrom=cknow.org; dkim=pass (2048-bit key) header.d=cknow.org header.i=@cknow.org header.b=ZCv4ip+v; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cknow.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1715607947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jDa7ygJBRT9N2NOt4r2Vw3CrChE0WUo+YyuQWql0zRU=; b=ZCv4ip+vbuzjXRiP+qoQF95iEFK6Njq0mu4g0wuVsQFsol3r/HKYwfCzP9k2vm1i8KWV4W EuQr9LjLp/pBbOPKEdUU8MnadukM/ntTGaIlcXUS5v82himOBjd0aGpmNv28VUkEvr51K3 2FFjHuaZUDr84VVyjtzPEnFaKaeI+DHTO1/Xu7hTdqYAq2M6j8PtZkjhjAYvtxdpkDxq14 2p4d4n3U7dA+zkwemnY0dC92kMfsRtXF9Ip9wsF82MuURx6wTibT8yi9KSUTBM78JEcifc ceyY8CGnj+E8cKDdmFah1elYVV18RebQo8lebQfSPmtzFCAM9IUHCIGL+VX0ag== From: Diederik de Haas To: Jani Nikula , Lukas Bulwahn Cc: Dwaipayan Ray , Joe Perches , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: dev-tools: checkpatch: Add targets for checkpatch tags Date: Mon, 13 May 2024 15:45:35 +0200 Message-ID: <10035992.Dr8D0Bp7vt@bagend> Organization: Connecting Knowledge In-Reply-To: References: <20240513102237.112376-1-didi.debian@cknow.org> <87a5kuez97.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1882286.OJMM5I3xxo"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Migadu-Flow: FLOW_OUT --nextPart1882286.OJMM5I3xxo Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Diederik de Haas Date: Mon, 13 May 2024 15:45:35 +0200 Message-ID: <10035992.Dr8D0Bp7vt@bagend> Organization: Connecting Knowledge MIME-Version: 1.0 On Monday, 13 May 2024 13:46:39 CEST Lukas Bulwahn wrote: > On Mon, May 13, 2024 at 1:18=E2=80=AFPM Jani Nikula =20 wrote: > > On Mon, 13 May 2024, Diederik de Haas wrote: > > > Make the tags directly linkable by defining targets for them. > > >=20 > > > Closes: https://lore.kernel.org/r/8090211.0vHzs8tI1a@bagend/ > > > Signed-off-by: Diederik de Haas > > > --- > > >=20 > > > Documentation/dev-tools/checkpatch.rst | 216 +++++++++++++++++++++++= ++ > > > 1 file changed, 216 insertions(+) > > >=20 > > > diff --git a/Documentation/dev-tools/checkpatch.rst > > > b/Documentation/dev-tools/checkpatch.rst index > > > 127968995847..6499e29c3a19 100644 > > > --- a/Documentation/dev-tools/checkpatch.rst > > > +++ b/Documentation/dev-tools/checkpatch.rst > > > @@ -242,6 +242,8 @@ This section contains a description of all the > > > message types in checkpatch.> >=20 > > > Allocation style > > > ---------------- > > >=20 > > > + .. _alloc-array-args: > > > + > > >=20 > > > **ALLOC_ARRAY_ARGS** > >=20 > > Alternatively, you could just convert the definition lists into section > > titles to make them implicit hyperlink targets. The rst stays cleaner > > and there's no manual updating. Yeah, makes sense. Indented boldface letters (as it is now), stands out visually much more the= n=20 an ``

`` header (tried it with "^ for subsubsections"). Is being able to use URLs/Links like this: https://docs.kernel.org/dev-tools/checkpatch.html#BAD_FIXES_TAG considered worth the (visual) trade-off? > Agree with Jani. It is important to check that the verbose option of > the checkpatch still works. The script actually parses the > documentation and then shows the relevant parts as verbose output to > the user. It currently relies on the specific format, but it is not > difficult to change that to use a different pattern, see sub load_docs > in checkpatch.pl. >=20 > So, please make sure the current --verbose option in checkpatch.pl > does not break. It's a bit more challenging for me being (mostly) clueless about Perl. Cheers, Diederik --nextPart1882286.OJMM5I3xxo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCZkIZfwAKCRDXblvOeH7b blIzAP9EhFqKBYgRIDerE91l8NptluoQXqKx9QvAq7kcZbepUQEAokli6UYhQg8y U9NYbmo7PCn4oAITKqG5tfuRdYPHLgY= =KViu -----END PGP SIGNATURE----- --nextPart1882286.OJMM5I3xxo--