Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5981243rdb; Thu, 14 Dec 2023 05:27:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGc3i1IiyWwKYYCLHmPjbCdfDUZmTDnA2UAy50eQsodsE9C6rxv3gdW7DPv+D3sMSS3NJ4B X-Received: by 2002:a9d:6c56:0:b0:6d9:f6b6:939 with SMTP id g22-20020a9d6c56000000b006d9f6b60939mr9877199otq.73.1702560430584; Thu, 14 Dec 2023 05:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702560430; cv=none; d=google.com; s=arc-20160816; b=t3wZqQhtZ+c0DwLceuLhrM1dyn4KQyDLx/EkHV4BfGtNZVsPbQPbfwzHycQdSM4rtw NZhNMFFiphWs6zVUcPItG2ms8WXEmtWAgL+UhZw2TwfwkTbduR0wo/Z6eG0G7OaINeGA 73uM4NIMDtgwYTcnrar2HfdEO3I84CFj6c5wJj6XyxHtLrojDmvaiVvDHgrpfZFtfF2Z UgHTL2C8fE/G22VGYW2kIUIr/hn8OH1B37zOYHwl4oHnvxqVPMc1Vm6hWsCnfZz4kImX zbxCoqfHbXVmh2HT6HhcV6WxsfINZDgscPKlFW8NkkIUTUIGSzHSWI2iuDmQogsQbCq9 aFnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OzitBG8c9xTl0gT0hJSz5Dys97zVkHOnQaDrsMAnjGA=; fh=85IGJw9YgDbwmit7q1vdQPT46mpU2Ix60dYQBV4qfvg=; b=ZI6AgFih3GNu5TwXKNNpp5fEoDL0/MSJAX3PIUNARxlSUbs4FrAOLOZq9i1GJzvibe ZSwvW800AbcAH5smAgRjO4nfoXh0aNQvOedhDjEtLuZwlY60k58clYMF+uAZD9vvpSQg Qi9uS/EzGBWTYB7lE5mZOfOYWvElnftOExqdf035uF01KGUYLcC2RHHmBH2HRUTrqri7 Ne+lnbEbnT6icfBBewARQ4KL2TBAf2zEcyD/+nAPNorJOR6wyLDqOwm1jxLQz8gispxC 7Lp4RvPOY8QqjLpd0/VG9khisUGRgK9lPzxmPuNT2VrR5/7fxeQA5I/qf2/9XbisfqOy GZtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aUa0IopZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c37-20020a634e25000000b005c645e1ff20si11072725pgb.73.2023.12.14.05.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 05:27:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aUa0IopZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D064280BB3E2; Thu, 14 Dec 2023 05:27:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573347AbjLNN0v (ORCPT + 99 others); Thu, 14 Dec 2023 08:26:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573402AbjLNN0m (ORCPT ); Thu, 14 Dec 2023 08:26:42 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37A6B193; Thu, 14 Dec 2023 05:26:48 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40c32df9174so72883495e9.3; Thu, 14 Dec 2023 05:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702560406; x=1703165206; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OzitBG8c9xTl0gT0hJSz5Dys97zVkHOnQaDrsMAnjGA=; b=aUa0IopZJPIlsjAfRWGbYgKh5t7fj14Uu19dA7hLS/RUQDoQYN1U+0dvL034OsaF8Z 5V3Mt1FMzS1Svma7J6s2x8cUgoTQy0zHCD0cUDpDJntc4RV+DYq5TsT2jOuKGhGS1vsY rcspMlP2jCthY+JCPnOC/8mk5oviiIZtt/L9uxBfGTUfPG9MGdV7XnNW2u6DjS9arNYO FjX4LQvSsHKtOSy3ftqOWOUWabvRfxzeKY1dm1GA3VddVifXwmGU0RF/CdkEBMJh8DuS 3bkDwB48kRbEvMoP5bbcpDHh4MOzwMgjH4sQXpI7cVtZ7fxQhHYQrayKPa+HjY9T2GC5 wmFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702560406; x=1703165206; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OzitBG8c9xTl0gT0hJSz5Dys97zVkHOnQaDrsMAnjGA=; b=R0hH+rhCbvwysIa83uTXUlYrSdf8s6iSEWIrg0piLYaTHzjgMFMW7aLLZurmCodz1n pi0lxj8CiMTmcFnFnS8x0APbpbSpE/sqnjAs3JiKwIHMccn62t3qnz4rTjXcY1nITfXL 9HHgnD1oORIAb9pthsTA1lnIjT6kLzL/uaSL6P6/8TzUg8bJvDvnRJGn28vME2mR25rJ 6wfW7L9q0J+9I2MD3C7l0WhKLu1/oH7nTKDylh768/RCArySF1hrsKvzBhn5VXPEgalH cXPlh+kALmA1Ba+1tJHwwMpY+UpRv3PF0RNE2Wk5kdB/uy9jqaEi4cjw/AlCeGWH/r7t qSxQ== X-Gm-Message-State: AOJu0YyLT6f8nG758hm63UCC7cRW+iuizOYheSOjoWAowynNAzvC525A 84pWntrDkZ54PhmlOHPWGg== X-Received: by 2002:a05:600c:4f88:b0:40c:3314:5bdf with SMTP id n8-20020a05600c4f8800b0040c33145bdfmr3870578wmq.230.1702560406435; Thu, 14 Dec 2023 05:26:46 -0800 (PST) Received: from [192.168.1.148] (224.69.114.89.rev.vodafone.pt. [89.114.69.224]) by smtp.googlemail.com with ESMTPSA id p8-20020a05600c358800b0040b40468c98sm26203703wmq.10.2023.12.14.05.26.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 05:26:45 -0800 (PST) Message-ID: <1c03eb18-a6ac-45c8-8fea-46097bb4e132@gmail.com> Date: Thu, 14 Dec 2023 13:26:43 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2] docs: rust: Clarify that 'rustup override' applies to build directory To: Viresh Kumar , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Jonathan Corbet Cc: Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: Content-Language: en-GB From: Tiago Lam In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=4.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 05:27:08 -0800 (PST) On 12/12/2023 07:43, 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). > > Clarify the same in quick-start guide. > > Signed-off-by: Viresh Kumar > --- > V2: > - Made few changes based on review comments. > > Documentation/rust/quick-start.rst | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst > index f382914f4191..7ea931f74e09 100644 > --- a/Documentation/rust/quick-start.rst > +++ b/Documentation/rust/quick-start.rst > @@ -33,14 +33,18 @@ A particular version of the Rust compiler is required. Newer versions may or > may not work because, for the moment, the kernel depends on some unstable > Rust features. > > -If ``rustup`` is being used, enter the checked out source code directory > -and run:: > +If ``rustup`` is being used, enter the kernel build directory (or use > +`--path=` argument to the `set` sub-command) and run:: > > rustup override set $(scripts/min-tool-version.sh rustc) > `scripts/min-tool-version.sh` won't exist within the build dir if the option the user takes is "enter the kernel build directory", right? It only works if they use the `--path` argument in the `rustup override set` option. I gave this a spin and works as expected, just thought I would mention this given how users sometimes simply copy/paste and this may be confusing. Tiago.