Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp691077pxv; Wed, 14 Jul 2021 13:10:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM6J/NWXk+cKCNI2TI3l0w58q0aht4/vHC/h6A6VM3qkVLAfcOX4lktZ26KodC72MYF1Yf X-Received: by 2002:a17:906:d10c:: with SMTP id b12mr13907984ejz.395.1626293437673; Wed, 14 Jul 2021 13:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626293437; cv=none; d=google.com; s=arc-20160816; b=QaEkhNL4ocAPfrEmfOYCzFrVpR62S0kc1aVVLomJKm87MnN5/7VbgEw2flmIrvlkPC qJWsV6Ib9JEx3JeBDQlYbQEuwlFYsmzMV292Bh+RpLPiB60klVRsFo8ZPNoxoB+lJkSf uT2qdfDU8Wwb3OaH5SI3DliaZu9NcjLNt+bmci+8y2dKFf7uWoCoOYzThbAe9iDmxW0V CSbLMUwQHf2yQuUYMlN3Xk3vhicBhP0QZvLVAZafly+PTTNljhsYUTHJtVVE5HYYL7Oj 2lYp4f2F3uxgSy7SVFGV6mxtAKFRe0IbkNyoHRH5TwXA98n4Rzz0o+YNpYjVsz5oVtUJ dFfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=81Xn7aVQAFz+p6d+JyITwXRpGql/VdikGqozJiC/tJs=; b=bRQdpmnMtpl1KRxzfSwPVym9fWbE1cXUAuh/PonRgZAmsNLPjCL5Al7y/c7hnRRUXO h+IAuG7mIsEsvwPNjE6DweYmpBdv38Sw7yNCf9MFtQvUWXdWeascQYUknLkDhpAvwZif ZF2/zG1uiiw4rl4Y56w/iRGL2tVUUjBdR6M/SIzo9XJlEy+jOOIQq3IssFAVVa05iVsU UXKkfR2IRr5fF8PF9qrNV4MQ2Bjg+lfQHkL7/jX4AkqCX1Nu6uzIrxLNQoGUjuWJMKGR ri4cFf3lrzAzYLF+dmzdk8HUQ02vS/u9Ss5IL3subBAgkrcYvezdphD/NjzCLvtAz/5C AgJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t5x7ODRr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si3363882ejv.698.2021.07.14.13.10.14; Wed, 14 Jul 2021 13:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t5x7ODRr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237171AbhGNULe (ORCPT + 99 others); Wed, 14 Jul 2021 16:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243378AbhGNUKh (ORCPT ); Wed, 14 Jul 2021 16:10:37 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7431C06178A; Wed, 14 Jul 2021 12:55:13 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id u7so3633391ion.3; Wed, 14 Jul 2021 12:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=81Xn7aVQAFz+p6d+JyITwXRpGql/VdikGqozJiC/tJs=; b=t5x7ODRrA/ceqZsP4VNa2SNq+2LDN93Db6Ve0FDPkOeuMPze+NJDeNWK1Nm2LBYL9g BvyPrMGVcXGQOqS1elAbPrdeYVW8jMoXnUBVL4PRpAYsMgweLp2pgwe11tMbOYlipIrk 5zGhGRvQesXwoQjdMMMRJSuLMVXgQB9IXAAInvNJg51Hp/KhWMR1oD65W3BaAfjwDGdv Qev+HIfTCAgADzg8k4/1N8/zIHXv1LEFvOwT9OWdtkItr2j1O+lDRtusu28BqV07GVaE Si/czf4PfHNqwrMxkiKcq2f2tdPYmQm7jhC3qaQqzdwXJQc5xQV+2CPPD+INvjbUx4Ok CUzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=81Xn7aVQAFz+p6d+JyITwXRpGql/VdikGqozJiC/tJs=; b=Gps3uAQmlxLJhY/hWBg9dVzMCUBMq22MhAD2HnQPyxwyZlUSTR6Mb0GJhnaPHbJVFV /63OwK3INzl0RUTn0ZLlzmxcfbZrM8kat/aGOyzJVHyy/Vb7BlKFE23Ml5IpAOqnuq/e eOgHvbAgy/RZNqiQ1CgNDw1QsW5zqRRziY8H/R2Ib4EuXkoGffp5Dp2PW6Ils4YpOnLA FOorXsLZmUV3ipEMjFYd2lNK2rCZyjnOkfAUL7JWcfxIIB3a5NDM81MZPBMDts8skdzg WWpdHNgUqLkc4cuNUkCox1MlFwpJXE5dlh96i7vXRzf7AatHqQd2+t7pEkz0OKCLJVVh +kBg== X-Gm-Message-State: AOAM532pZ/GWRp2eJhCu4Lx7rNXZXAy8J+e+7pmV051TBAmHOEYEyQw2 TbREJDlJ07RfkIUaTve4oVO4FcrAMRvOnbCgBfY= X-Received: by 2002:a6b:6412:: with SMTP id t18mr689657iog.64.1626292513301; Wed, 14 Jul 2021 12:55:13 -0700 (PDT) MIME-Version: 1.0 References: <20210704202756.29107-1-ojeda@kernel.org> <20210704202756.29107-14-ojeda@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Wed, 14 Jul 2021 21:55:02 +0200 Message-ID: Subject: Re: [PATCH 13/17] docs: add Rust documentation To: Nick Desaulniers Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Boqun Feng , Sumera Priyadarsini , Michael Ellerman , Sven Van Asbroeck , Gary Guo , Boris-Chengbiao Zhou , Fox Chen , Ayaan Zaidi , Douglas Su , Yuki Okushi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 8:38 PM Nick Desaulniers wrote: > > Is rust-analyzer necessary to talk about? I think most kernel > developers aren't using LSP clients, so it doesn't seem necessary to > talk about for kernel development IMO. If a developer would like to > use an LSP client, they should refer to the documentation of their LSP > client. I think it is fair to advertise it given we have support for generating its configuration. Otherwise, people might miss the script and spend time generating a configuration by hand (which takes quite some time and would not carry the `CONFIG_*` settings etc.). And they may start using it if they did not hear about it! :) > Should Documentation/process/changes.rst be updated to note which > versions of all of these tools are currently supported? For the ones required for building, they are already there (i.e. `rustc` and `bindgen`). For the rest, most come with the Rust toolchain, so I think there is no need to list them explicitly. For `rust-analyzer`, it is "rolling", so it does not make much sense to put it in any case. > For the compat table, for 32b ARM, why is v6 supported but not v7? Why > only when optimizations are enabled? For arch support, we only have a few fixed Rust target files for the moment as examples (thus we picked v6) -- we will generate those with a script later on. For particular restrictions (such as the optimization level), we will look into solving those bits later on. In any case, it is not a priority, since less than `-O2` is intended only for kernel hacking. > Doesn't this also depend on rustc having support for a given target > triple? Just because LLVM has a backend for a given architecture > doesn't mean rustc can target it, right? No -- currently we use custom target files instead of particular triples (see previous point), which are basically the settings `rustc` forwards to LLVM for codegen. Cheers, Miguel