Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1465765rwl; Fri, 7 Apr 2023 17:10:33 -0700 (PDT) X-Google-Smtp-Source: AKy350a2zD4KTkXwhW/ohp9lY5NSWAYx91rv9MwJwqCUTTxtpMYXIjFXcXxpMtvbdCqR7Knrt6Qg X-Received: by 2002:a17:90b:4a04:b0:234:31f3:e00f with SMTP id kk4-20020a17090b4a0400b0023431f3e00fmr549202pjb.43.1680912632774; Fri, 07 Apr 2023 17:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680912632; cv=none; d=google.com; s=arc-20160816; b=ygqR1Fw6dix50q6xQ2+y1WBFJBQ2HcvmRjn2yNxfEgmU70WbSaxcY1YChnx+VwHQMU KFp3MLl2F6XoaDOccbKLI6UDh5RvThj9mxNO7Z039uFnB+VguhYSLDcZfbRp+rJE1v1C t8TVlRZlBZxVPKsftYmH5SHyIwe+N93AhTxBDMzNrxaL/xqQMRogsphj9fWH+K4E09np ns/hTLWABv3IEIisQY+KNS4jc6FkYo7qkMydQm1z3Mzwprw7zH3yx5dJ6iaGefLtoxuC UfmQ7EmiMKUVQlF0wpU5mJrdJvelN5RNnc1IrOjcvhvCwUwsbzImgtCmgdqgjisWrZCo pW0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mGZafIXu1oZoLrFZaJuaTlQovGr7le+3cdq/cC4fsMs=; b=WU8T+YDgTD60j90PbhODKZ/ePhBlzavZxhMDrpB4LKQ+vrCYJXJuH+4qX331DC7hSo pPMCg156YuapZutAmnrQ7TihWEyiesgr2hQVIGbDVuQ8edvKBJaDixDxFpKFBV4dbJKI SUUMS5hv6Wld4nMocqpPj923Z//LMkZJiZ1akOxiDyHYBh1DdzNc3M0Szn0kPCo0l/wT FYDK/N76A1jlJ5hGTwFEdPmU1Nx6emsgXKiI6No3ztFe3iCSKQM+Bhlnutnuuk7pOVFt MtU3fYTgyn5+W28DjXq8Lje6RBlYnsWtwfflvZunB8LFPqu1/a7PDDWZCsnfZ5iNGxn8 JXHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mVY1J6nl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a17090a8a0c00b002465d1de874si1913497pjn.130.2023.04.07.17.10.21; Fri, 07 Apr 2023 17:10:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mVY1J6nl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229483AbjDHAAA (ORCPT + 99 others); Fri, 7 Apr 2023 20:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjDGX76 (ORCPT ); Fri, 7 Apr 2023 19:59:58 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F8FBB96; Fri, 7 Apr 2023 16:59:57 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id z9so94624ybs.9; Fri, 07 Apr 2023 16:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680911997; x=1683503997; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mGZafIXu1oZoLrFZaJuaTlQovGr7le+3cdq/cC4fsMs=; b=mVY1J6nlfbu/iYNUUB1czpzlhOwb6wotQJWPnqexv2JfgOnhKeRX/F+x4jXLi4KF4T u5xIxlRTrqStnOiox2EguzbvIiDwEd8bQ8owcaDQeXZd9bVw7BgD4FlfQmdQvaR8lTQ0 mtjFdli66KAO9crZx1LlPIcO+bVH4674rJE6gG+7Pg9ZI84IdnHA8Sk8foPtKdqgZiCn Wk7LMnTUMXIcM0dj+S40slHKAXaq/vP0jokBTgo/7dLNggylJuApVWHPCxgRIWshDvXm n7lpCF9BHx+UCQnJC64VpxS2/y8hIdOpyiByxo4jj46wiSmlm2HaG7HAG0PxzUdBSEX+ pFCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680911997; x=1683503997; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mGZafIXu1oZoLrFZaJuaTlQovGr7le+3cdq/cC4fsMs=; b=dS+2UYZxyzZKEEnlO1npA9Lsr4Zu3NRindkPxHPkvW9EWZzpQBtEkM60QML7NT811I GrQuZQ0cdmGmDHCG1bMX8TH3zmXbYDnqvkwlVICC0jyDlAxIK43tvJmKy3b7KKawkbKO LkoSo0uT8GmOM39hz3sCn4qomXIBeVQrcuBgMStKE8F/c5Tt+Fvkjm6BPIko90MmdEd9 dPGXZ98D4fKiLNww4vMVFaXVh81mEmCFGKnWnKaGchupRnAa2VQjBfEbuBBszeNHyA53 +dKhVQEPJauYoEuOAt9LjxI5K0hMVlz0FOL3arfHGeIVSKCJaIwSoGthZqqq2DtkM0Aj B+VQ== X-Gm-Message-State: AAQBX9eucAJ3hEzQifXPc6dFerZXuWkyYlEMdIr7eqMK/81jY8B60GDm 7RJNXR5OlYvBCcAqMg11PNdJwrEh1F1GhsrbF0o= X-Received: by 2002:a25:df47:0:b0:b8e:ce2d:290a with SMTP id w68-20020a25df47000000b00b8ece2d290amr337491ybg.11.1680911996813; Fri, 07 Apr 2023 16:59:56 -0700 (PDT) MIME-Version: 1.0 References: <20230121052507.885734-1-varmavinaym@gmail.com> In-Reply-To: From: Miguel Ojeda Date: Sat, 8 Apr 2023 01:59:45 +0200 Message-ID: Subject: Re: [PATCH v2] scripts: `make rust-analyzer` for out-of-tree modules To: Vinay Varma Cc: Masahiro Yamada , alicef@alicef.me, Michal Marek , Nick Desaulniers , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 7, 2023 at 8:55=E2=80=AFPM Miguel Ojeda wrote: > > No problem -- thanks! > > Note that we may need a rebase after > https://lore.kernel.org/rust-for-linux/20230307120736.75492-1-nmi@metaspa= ce.dk/ > (or equivalent) lands in `rust-fixes`. So perhaps wait for that, then > rebase (especially if we go with the EAFP style), and then others may > want to give it a spin for a re-test. > > When you rebase, please consider putting `f"{name}.o"` inside the > function to avoid repetition, and perhaps consider inverting the > condition to avoid indenting the file further (and reducing the diff). > It makes the "Skip ..." comment more understandable (otherwise, you > may want to change the comment to "Only process ..." or similar > instead of using "Skip ..."). The EAFP style change landed in `rust-fixes` at https://github.com/Rust-for-Linux/linux/commit/5c7548d5a25306dcdb97689479be= 81cacc8ce596. Cheers, Miguel