Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2508995rdb; Fri, 8 Dec 2023 10:04:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeqIQUfG/89vwvdambbD5USOElS766VuJQtlOyOttID0ksPtObBhxCnCKBm85PQNhMIdg+ X-Received: by 2002:a17:902:c412:b0:1d0:5ac4:4959 with SMTP id k18-20020a170902c41200b001d05ac44959mr507397plk.6.1702058681893; Fri, 08 Dec 2023 10:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702058681; cv=none; d=google.com; s=arc-20160816; b=dgbGQQME86gmzEli6sK55PfO0UhUG44sxkTFx5H8GwxK8wN+LQ98VfiBQ7fZiJDTgW YXOC1Dj3zVxx5EfEXO/bJsr6QAOPB7wJG1l8JX2f6Upwg4nocqmCkouxXUHDqyMH3gZQ Vd35u2GYH9tadz4xKNc+rBaySN+KzxpfKeGceqympDz6GGzVZgDjSGuiVnIDxi3O3BnY T8dYpVFOaFjC2JYaS1RlfJbn6omd4SwC/f+yGQ2Mf3qbooXv1+Fu45+ccRJ8b2Qhpob+ XyRyet12I94cVN6KU77ggqes9qVC1pjbztqO2jGcuOWH0GpArwzCMa8X5jLtzzIyele6 l6Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=PTmEXgI7BxufT0npzlsJT5kiKHIgc9s02WiJV5XBNQU=; fh=Qv20lQx6CFWH4hLELxTkn6oSchlJ/ypmF0OzSmDTfuA=; b=DlSQgWhwz90OciYWrmvRQCO3bLpJ8TVqclLdKRUuM8YyB2opoRZ1kCJ5f2ktdXMRtK iSUAIlSQD4eJ5G2SIEA+P1Bb0eSl9CTVA7P/1lKzdujmNzMZ8L8zJsfqKJDt7agBxO+T ly8kVgmCYzRR8DZJgTdXh0QvYkY78v46NZC4Xt5veHkUEWUwV7xU4q+Q+errR4DEld7b tnGSgX5JBwyf7Y2XxzIlyrTS7G421DiNhJSqewGcCxBFRXmO6OO0plI4lncfshoo0joc K2SfIfjRuY8Be5xMsmxRnTv1R/Y6RRjJp2RTW4qCYJhYIcXMxfRBDOEuVIuagLKe8lSl ccIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=Ku3Fwe5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id je22-20020a170903265600b001bdd58f685fsi1868497plb.85.2023.12.08.10.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:04:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=Ku3Fwe5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 80D8481C5094; Fri, 8 Dec 2023 10:04:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574598AbjLHSEU (ORCPT + 99 others); Fri, 8 Dec 2023 13:04:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235943AbjLHSET (ORCPT ); Fri, 8 Dec 2023 13:04:19 -0500 Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 746061738; Fri, 8 Dec 2023 10:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1702058660; x=1702317860; bh=PTmEXgI7BxufT0npzlsJT5kiKHIgc9s02WiJV5XBNQU=; 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=Ku3Fwe5Ivvvv7/4sAslKhSLbNE2c16L8W9Vp2kURUwCdrCDOtvKhiKIMRbTdK+mLb Ti7kJUTNntqDHGEdE/Z0ZzRQtCNOd1Ub7YXRTUkkM6VYDHMchM9FzkXNzQT/blk/cd VxjB0iLT27kzVChTAGy0f6kaeZxfXQjbAyOG8tlH9uJunL93YkuR+lVz0cyeuMFjM6 +cjKRCuJp7gCslhzCntRKnuKz4z9XlyqusEBM3xbN5iiNhb1niGGQIdNc/FDO37NjK BdutuscjCKkjvnVgI/ubh+oIPvQ+s8WYwvM1jJehNprfolLSsWuogbdxl87AYgN+o+ CdGM0doVGmiOQ== Date: Fri, 08 Dec 2023 18:04:01 +0000 To: Viresh Kumar , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Jonathan Corbet From: Benno Lossin Cc: Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: rust: Clarify that 'rustup override' applies to build directory Message-ID: <4738ad1c-eb54-4ad6-98c8-3852de3e8fc3@proton.me> In-Reply-To: References: Feedback-ID: 71780778:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:04:35 -0800 (PST) On 12/8/23 11:18, Viresh Kumar wrote: > Rustup override is required to be set for the build directory and not > necessarily the kernel source tree (unless the build directory is its > subdir). >=20 > Clarify the same in quick-start guide. >=20 > Signed-off-by: Viresh Kumar > --- > Documentation/rust/quick-start.rst | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) >=20 > diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quic= k-start.rst > index f382914f4191..a7a08955fe46 100644 > --- a/Documentation/rust/quick-start.rst > +++ b/Documentation/rust/quick-start.rst > @@ -39,8 +39,13 @@ If ``rustup`` is being used, enter the checked out sou= rce code directory > =09rustup override set $(scripts/min-tool-version.sh rustc) >=20 > This will configure your working directory to use the correct version of > -``rustc`` without affecting your default toolchain. If you are not using > -``rustup``, fetch a standalone installer from: > +``rustc`` without affecting your default toolchain. > + > +Note that the override applies to the build directory (and its sub-direc= tories). Shouldn't this be "Note that the override only applies to the current working directory (and its sub-directories)."? I think it would also be useful to continue with this: "But in order to build the kernel, this override must affect the build directory.". And then you could also mention that in the default location for the build directory is in the repository. --=20 Cheers, Benno > +If the kernel is built with `O=3D`, the override must b= e set for > +the build directory instead. > + > +If you are not using ``rustup``, fetch a standalone installer from: >=20 > =09https://forge.rust-lang.org/infra/other-installation-methods.html#sta= ndalone