Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5266665rwb; Wed, 17 Aug 2022 14:25:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Nh0saTYWAciotWnacAa+xjhNv+g9PvywUkEal3/CXw90531DcWlocqjZ6GOGTGGM3qIOi X-Received: by 2002:a17:907:2cd1:b0:730:65c9:4c18 with SMTP id hg17-20020a1709072cd100b0073065c94c18mr17809396ejc.324.1660771553620; Wed, 17 Aug 2022 14:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660771553; cv=none; d=google.com; s=arc-20160816; b=Zeh5yjfGoOEQSourjVVO4BJyadKNpBmpfNzNqgSkMsQ3mkC2EXmQ3uLKcuOqq/AmvW 6DlLoN64sK2+TuCbK7IoAdcOR3G1XUZ8aeSe6cOQdjSVIood0oS174ThIk6sEGcRU+kq or19XFTz5EYvboqeTteime25wKIknExl5HHixUPSaSIxVbedSQWRph7MQjjzX5Ot7peR db+IAf89DGRwjc0PF9Rmt73dvCArJ0aWolWSZOt+kwWsgysXKCsih3u3D784+CTg4Maa o2gXFl3X/s909CvaFQMaWzMQpqTasqHR8zNAooF1fu2ecLA6TMpdjLhiqJ/izLTbD1sI Fidw== 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=2F8UapFM6fvTc5fGCMprtfZuN5LHlZVrraMyXumfVqE=; b=qTMCxss/cmNDr2gFpoxlMMDwH6JJhFViT3PUnwiVyAxSOXQ+gT1LL0a6CS7Zp95V71 5rFErZ8ZaL5UIP3doj/A+wzxfr389t1Xwce9zbNPHe0dF/F2oUdDNX7xbk0XnCXiVgEb BbOAJcgtxw3Q0P78HshbjNgiTKyRZCYs7jwIYHr8JboVT6TSKsMTp5C1F2IT16jV6cGR Buo1IC6vb5WFpGCvxETvAVOQ+DZaDxN6aVSM5iavNb5b/YlDlUhP1Zggp9daWMkSxCja 5dMh3fcImotEKjgyq/RjfA2a4VLe4Kb1n13w1h62iHDTL3KOGwa7X5FAxUZLeOMaqH+L piaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LbgMGsGK; 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 go42-20020a1709070daa00b0072af6ec8081si1466182ejc.651.2022.08.17.14.25.27; Wed, 17 Aug 2022 14:25:53 -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=LbgMGsGK; 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 S241841AbiHQU4h (ORCPT + 99 others); Wed, 17 Aug 2022 16:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241761AbiHQU4e (ORCPT ); Wed, 17 Aug 2022 16:56:34 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86DACA927F; Wed, 17 Aug 2022 13:56:33 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id z72so2766129iof.12; Wed, 17 Aug 2022 13:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=2F8UapFM6fvTc5fGCMprtfZuN5LHlZVrraMyXumfVqE=; b=LbgMGsGKphl7X2/Jn0u5eMcUeY0mew1lHqKEqfLaBcD42X17Re8z5rpOQYmW5Vtdo9 tsbQAaIFqFo5BvaBx68dsfnuUwQq92cWSEI/zxlhcsjD+kx3hydeBmsw4hEX1VPxHNvw tKWoDZfnYemoNlsbZC7T5Vg/Y7CgUmUyqnX6JuDfQU0jfZ/7c2KoYLaCTzWOhZsNLkVP vqeWW/J4WU3sDEN/7KdViU1V3Y9L/UKbFfVhaY7IJ3DWdEMKtg8uJdqyaFYcyhIYcwBa fVXnH6CAm8WsCTJgnXY6K1pGRxlZiwyjtMG1yPSDD/ZtE6bHaFuxIcURQjWPG9D+DslS ipSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=2F8UapFM6fvTc5fGCMprtfZuN5LHlZVrraMyXumfVqE=; b=mX/m7Rk10kWwjaZUStBjmmTzu9xYgrTmgaYkbXjiXyMTiSB2DTDb2kS1hDSRWqrH4G 9JKcGtO/axXs21B7rBpxw6N7rXv7EF1jOYful0wl09lAh8DNqozhEwuMbl05d4V7es2+ 3SsEJy7F5qJR4pkfptXWsV0tA7siOXjam/WshiZdeq+kjhDOmaXYi4Q/FC2GI6xMN2Ti oHo5Fg0FpOsTHGneaK6Mc7IKMmo4nzSxfpAEzh3JHu03oQdbSCXqvS+WOplVxvlv8LMs WCusQkNXbpT+5viiYV8j0RWAzPVLo7p3xkDt6dY9lx1BpfNJ98om5JcpNluerZDQOFJV oS9g== X-Gm-Message-State: ACgBeo0R1EOoZuYZI2iTEz2/CngqZXnat7lGtVu0meSTWN7+aT2CV3g0 QZlmXpA4XOuArOXeHnm6VlSCjbrBlVrZQtyIgoU= X-Received: by 2002:a5d:8618:0:b0:684:6469:596b with SMTP id f24-20020a5d8618000000b006846469596bmr10939iol.177.1660769793009; Wed, 17 Aug 2022 13:56:33 -0700 (PDT) MIME-Version: 1.0 References: <20220805154231.31257-1-ojeda@kernel.org> <20220805154231.31257-24-ojeda@kernel.org> <202208171324.FB04837@keescook> In-Reply-To: <202208171324.FB04837@keescook> From: Miguel Ojeda Date: Wed, 17 Aug 2022 22:56:21 +0200 Message-ID: Subject: Re: [PATCH v9 23/27] Kbuild: add Rust support To: Kees Cook Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Michael Ellerman , Sven Van Asbroeck , Gary Guo , Boris-Chengbiao Zhou , Boqun Feng , Douglas Su , Dariusz Sosnowski , Antonio Terceiro , Daniel Xu , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Martin Rodriguez Reboredo , Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Aug 17, 2022 at 10:26 PM Kees Cook wrote: > > It'd be nice to split this up into maybe per-target patches, but given > how long this has been getting developed, I'd prefer to avoid blocking > on that, and just get this series landed so we can move to incremental > fixes/additions. When I started the series, I considered several approaches, and in the end opted for "setup as much as possible before the flag-patch that enables the Kbuild support", which was simple, though indeed the Kbuild patch remained fairly big. Then some people commented on that patch over several versions, so I kept the simple strategy :) What I can look into is moving the optional targets out of this patch, putting them after the "flag-patch", since they may be considered "additional features" anyway. In fact, for the trimming down in v9, I thought about removing them entirely. It will not change things too much, since they are small, but it may help. For v9 I nevertheless attempted to simplify this patch by doing the "move all new, big files to their own patch" (see my reply at [1]), so it is fairly smaller than in previous versions. [1] https://lore.kernel.org/lkml/CANiq72nzOQSd2vsh2_=0YpGNpY=7agokbgi_vBc5_GF4-02rsA@mail.gmail.com/ Cheers, Miguel