Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp56489rdb; Mon, 18 Dec 2023 08:48:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBcAsPRb8Q6s1pdqiEydGTREQi3mvTyr/J3Zpk5lSVFSZTU+8/XwpcjRRgM0AemhZWSeqq X-Received: by 2002:a05:620a:198f:b0:77d:630f:632f with SMTP id bm15-20020a05620a198f00b0077d630f632fmr23915702qkb.18.1702918118882; Mon, 18 Dec 2023 08:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702918118; cv=none; d=google.com; s=arc-20160816; b=iZub1J9Mnbpd5PEXHlMsJTYnDMh/IBFAoD8TEy/yAD6BmoB+4BUkLqYPVAim7M1G0k Re0WiTIDtIgoJuNQTnsjqEaVRPyvAnoUdaRBRMCGS5WC0aaBhdUbKOj6TqDw7BZSMIJC FAk3DCp7RgGN1gvtHXokq2RMTRD6uU1zNVguWQ9rkgioalnrxhYHqaz0oPRxKbKJjJtp ujyG880rPxl5OX0c1nCnjoC8O+v95EC/lOi4mtL0gb7bVTXdl4G7yHtaX5cKra3XP/nf gzwxOnBbHIUkxFZ3tDu3vYZo7TJhOmE2F2wKVBg1jmJdenRDctvXAQFcMfFPJZAi2mKl hRLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=v9pawaLRbD7XrwXq4qwwGdgIqJMcYyLCy05mpVqZ3CA=; fh=ArBpIHAuOnzmqfi5epfv98IJ6fUeNgTiHtOfa7AdXDA=; b=r0BnyyqhaqPzleAxeGv3iPyhAA0jkOc719fjSBRrea/J21IU122BVAhq2RiZal3PXz UoOCbXkYGbmjhJvZoUzzUN4DejvRUdRauQvgb8FxRQT7z6O/aU/yJALf3uxtU2p1jU/Q GWGNXKf1uqc6zSPUN1LpkMfgIamcK9L347VUqlKR2iIxkI6owqfM8w4totFfu04sv2Xh L5pRptEA3gqeFLeifIHHSNxU+kYipB8mL8UWz48+NF/f29HVV8FFwxEgsiQddAkKST6C F2dLKXbLGLSI6efMpy6envvPQt31rPBeBXcrOuATx9zC2da+Ic4co4/ZD/YRJfItSa2V MdXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=DUFcRNPp; spf=pass (google.com: domain of linux-kernel+bounces-4094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bl7-20020a05620a1a8700b0077d685d25b6si25577857qkb.252.2023.12.18.08.48.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:48:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4094-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=@proton.me header.s=protonmail header.b=DUFcRNPp; spf=pass (google.com: domain of linux-kernel+bounces-4094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me 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 97CAF1C23EDF for ; Mon, 18 Dec 2023 16:48:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6B9E498B7; Mon, 18 Dec 2023 16:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="DUFcRNPp" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (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 A03B61E4B0 for ; Mon, 18 Dec 2023 16:48:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1702918080; x=1703177280; bh=v9pawaLRbD7XrwXq4qwwGdgIqJMcYyLCy05mpVqZ3CA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=DUFcRNPp7GOnQ+4wIEfz/C2icJzXFGsrbCoyU1El+zHbqH72NYFcNyY4f4Zuia4er gSli4iaDXHMow1Alx9yqLiSZGIILWIQeALYV8iOhHkkTsRZjEx6M4rYJWAA00fypeh 8fj/QH/rDqch1AUleBFiLTLOoZ4YgUt79814entLObYZPx/5uPnPJiaaEeUYpWRY4i w1U50XDd7zIg6dHx4nQwaz/9YLw6felElDtJF1Bwzeia52PfmYwuEis4QeBkmo0pNU s9goCpzNdHA75ueJVslmo8g2O2xpGG8J+9F8A0WrycW4H5heDUgW6zTrcu5N8Y3NTV yFbLFrElE0HRQ== Date: Mon, 18 Dec 2023 16:47:42 +0000 To: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor From: Benno Lossin Cc: Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, FUJITA Tomonori Subject: Re: [PATCH] rust: support `srctree`-relative links Message-ID: <1779a7c6-bacc-4c3f-a30d-0dcd6865e1e0@proton.me> In-Reply-To: <20231215235428.243211-1-ojeda@kernel.org> References: <20231215235428.243211-1-ojeda@kernel.org> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/16/23 00:54, Miguel Ojeda wrote: > Some of our links use relative paths in order to point to files in the > source tree, e.g.: >=20 > //! C header: [`include/linux/printk.h`](../../../../include/linux/pr= intk.h) > /// [`struct mutex`]: ../../../../include/linux/mutex.h >=20 > These are problematic because they are hard to maintain and do not suppor= t > `O=3D` builds. >=20 > Instead, provide support for `srctree`-relative links, e.g.: >=20 > //! C header: [`include/linux/printk.h`](srctree/include/linux/printk= .h) > /// [`struct mutex`]: srctree/include/linux/mutex.h >=20 > The links are fixed after `rustdoc` generation to be based on the absolut= e > path to the source tree. >=20 > Essentially, this is the automatic version of Tomonori's fix [1], > suggested by Gary [2]. >=20 > Suggested-by: Gary Guo > Reported-by: FUJITA Tomonori > Closes: https://lore.kernel.org/r/20231026.204058.2167744626131849993.fuj= ita.tomonori@gmail.com [1] > Fixes: 48fadf440075 ("docs: Move rustdoc output, cross-reference it") > Link: https://lore.kernel.org/rust-for-linux/20231026154525.6d14b495@euge= o/ [2] > Signed-off-by: Miguel Ojeda This is nice. Reviewed-by: Benno Lossin --=20 Cheers, Benno