Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3856468pxy; Mon, 26 Apr 2021 11:22:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwazyP2ntOhZSM6dmIrr/3vWr4dZrAHHiGhCgqZ+GoayxBFbqvWJ6DXXu95GbjuVwfXLyKA X-Received: by 2002:a17:906:c1c9:: with SMTP id bw9mr20256597ejb.239.1619461324332; Mon, 26 Apr 2021 11:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619461324; cv=none; d=google.com; s=arc-20160816; b=V2bodvUXU5HUk8+Yf89vufGrfCg8MKJcscMtUJCu1Yup8FEBlPmSM7VipvkU/ilC+8 ItIuZYLgeffE46ZJi9F8XUcObYVLRGNmlbdq2Qh9kZMP3DYJh1d/pYwLn9DAObqEhGvY 3xv5wAt/ZLaM953L2lvZ5+Z6hRpxn9812rmPDpTaZbK41na+Q5T8eGSbzcsk96oipbOh RtEqZ6HDkaU1aWlrFA1VoE5fePjfWHZjD7EuX5V3t+IPn4tGZzYfxDiPcpsddj0cGacK qdyuGXE5HYbdBfTvm+/Q/HZVRNm/m1bN3LL6S2+Ka+W9svmnpS3FmgmxoZNCKoZl+Uq4 VyXA== 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=F7v36cla8caxpSLJhOMdKWfComHLfYG2gbSrAEkLrOw=; b=jk6xsNaUDI8ijgc8HmzTsVXSNczJwpQBgv+YABL4qTgQDCKTaulpSokU0JR2nUrLdi hwZ2dE+E88r65f0pYAqL7NF/NQoBhrSGaJPcHAYI937VsEDWI453ISfVSY4hfZep/w2J 9xMTSbOdT7OlpWVjR8c/GzKWjlJIqgWC2QdTtZ0n3zC2TT4G1KEFzUCnRexTwttKTD6E 8+Rxxrj1eiS2E67W9o6OtpED3hzZXV+7P8BvdUNwMVQdkEuL+o3t/rv09aW3s0XtuFBl V61Z6vnHp6ZCF0h8KcwpDuWeRgRdAtlS2+nNvdNGecdHLbNxzlKHLqlgIXhrh/sLbc8F LZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A1AFfE+2; 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 v13si536720edl.24.2021.04.26.11.21.40; Mon, 26 Apr 2021 11:22:04 -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=A1AFfE+2; 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 S234460AbhDZSTN (ORCPT + 99 others); Mon, 26 Apr 2021 14:19:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234304AbhDZSTN (ORCPT ); Mon, 26 Apr 2021 14:19:13 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAD1C061574; Mon, 26 Apr 2021 11:18:31 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id i4so28479264ybe.2; Mon, 26 Apr 2021 11:18:31 -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=F7v36cla8caxpSLJhOMdKWfComHLfYG2gbSrAEkLrOw=; b=A1AFfE+2fVystHL7B+p4dhFFNrnZRzFxxOsH2x/tAB1afo1nksfGMvGLn1CzpLOhw7 19f/dgMkIRmUHi3WS8dkILKMSRG+qdG31sqbBDqyBwZG1qaCKY5peThW0OKBOnXi7TJH WH1X6CPUDOZ+Bxax1/I9FC8i61tBZ4AshhRhe6n6HLl5yoyo4VWOQiQZosSrzbQRcPTd 32G4FpKQ+WBP5lmdO8pZiF432W2/5wLwLNH7UwCt+dvOvQZi4WATaGbm736K8+7PRPuS FBAPB0vtCUhsjHsm0BN4WeiPWwcqg56XUG0sd7/wG6A98/Gu3ZkKPjI+zQvbmw9B7ab9 qYMg== 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=F7v36cla8caxpSLJhOMdKWfComHLfYG2gbSrAEkLrOw=; b=VjGnC53kr4tORdxtYCKL6v1GeX09+s3J6wp9Gnftd64juvIDAYd4L4a2ab3X7nnFr0 2lujqePoKySS+5JTx8bZ9CgFZUlAz4qSEzVyG1Le2Bf49V/MvOa+YewXfBynLRv984E1 L07yLkEvBRh/ZcZR+ynbEoHHul8JRMLzP4py0HCWnRyS+vDHwZloWuGdz+1cfUAWVOpL dZ5drcSygKn1KtqiEP7Pt1BAA3PPRJJW7/OYs5dJZPoYzTKay1MoNHqbl0+TlQmk/yhl 1mEmSaFP+Y4dflMT8QhZadLYrWTOeYfnT0v/XvMakoslba48McU+5OdTG34D+6Bugb7o qEAg== X-Gm-Message-State: AOAM530qi3wAbwWekk/zbk60vbmaFayoVtqICPKRC33PsK5TkEBS3B+7 wlvRpt29+x2HkXBFW+oXX3TXcPyBA2emBmc0ZOE= X-Received: by 2002:a25:7909:: with SMTP id u9mr25819339ybc.22.1619461110782; Mon, 26 Apr 2021 11:18:30 -0700 (PDT) MIME-Version: 1.0 References: <20210414184604.23473-1-ojeda@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Mon, 26 Apr 2021 20:18:19 +0200 Message-ID: Subject: Re: [PATCH 00/13] [RFC] Rust support To: Linus Walleij Cc: Wedson Almeida Filho , Peter Zijlstra , Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux , linux-kbuild , Linux Doc Mailing List , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 2:31 AM Linus Walleij wrote: > > I think the Rust proponents should be open to the fact that their > work will eventually depend on themselves or someone else > fixing a working compiler for the maintained architectures in > the Linux kernel one way or the other, so they will be able to > work with Rust project anywhere in the kernel. > > For example m68k is not going away. Avoiding this question > of compiler support, just waiting and hoping that these old > architectures will disappear is the wrong idea. The right idea > is to recognize that LLVM and/or GCC Rust needs to > support all these architectures so they can all use Rust. > Someone needs to put in the effort. The RFC does not avoid the question -- please note it explicitly mentions the architecture/platform support issue and the current dependency on LLVM, as well as the possible ways to solve it. We would love to not have that issue, of course, because that would enable Rust to be used in other parts of the kernel where it is likely to be quite useful too. But even if we did not have the issue today, it seems like starting with drivers and other "leaf" modules is a better approach. There are several reasons: - If for reason reason we wanted to remove Rust from the kernel, then it would be easier to do so if only "leaf" bits had been written. - We cannot compile the Rust support without nightly features yet, so it does not seem wise to make it a hard requirement right away. - Kernel developers need time to learn a bit of Rust, thus writing subsystems or core pieces of the kernel in Rust would mean less people can understand them. Given that drivers are a big part of the new code introduced every release, that they are "leaf" modules and that in some cases they are only intended to be used with a given architecture, they seem like a good starting point. Cheers, Miguel