Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp939069ybt; Fri, 10 Jul 2020 16:57:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8vRlwrZHDlrsDDUZzoJmUsV0xGvwxTl4cHS2tf/Z4/CZksJ76V4U/i5RDqSiaCQJ41zCm X-Received: by 2002:a05:6402:1346:: with SMTP id y6mr80846250edw.192.1594425438070; Fri, 10 Jul 2020 16:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594425438; cv=none; d=google.com; s=arc-20160816; b=uxycv/2F0GC583JufhhtJQ2yEeeklfXxSNwV9klTgozHvMRHpkAhtCekndKqr9PjaK Zi3QVX7ytF3/BJ7jGmPyYIxM4XQgzzQf87LpqP8IY2yvels8B8J74BebRZmlwcXCfFLp wu6N0tFAFVlZT1oTUL6nQhRE+s4UOLrAEtedHjVEjahtxs7/CNbId3kd1QjRdF1ceiHL Ny5wEPrlOcWy0mBTyokt9m0Hx/THCEptt0pdTwnTUN14r1MuY6ULBE7TWYv7S3LJEc8t JfStdXFqUu4gN5kUN2YaVyWwUsYYnsaR584vjXEK3nyQpbh3KMFJ2qRGmixBFbE1ARwD xUUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yPDc4YWgWbGk7IZLwT7LmgyK3OX3orfZrqhUS49J9i0=; b=V2wG44lZ0BLjmv/IYpdHT7jlcch0us6gjGadN39RVBMXCDYLG1DLCTh1MrGc4ShpiO dG+YW9aionxgRBDIe2Z0t7nJNUzRoSHuAhsq14+DxiHJh7QK9xN9NCoUpUv8eD49uitq M9L85pttoo4a65y6O2IhBUNWX6gPRiyJJ7g/F1fExsy+1i4jHCfvMTwakRWf/tU/9PBq mc1lCL7xFrJ6NLuGVhBp79rVxGpu+OU5U5ipSU7vqsjOVnPrGQjQdMr2LQC0dwen7/IJ 73+7Ww2XPGSik+QBSJ8UhiSg8B4QWwUXOaMi/vd/GV8Emnvb292T9NFyHrwl1jreVGnT WD0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LA1CntXR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si4936476eds.273.2020.07.10.16.56.54; Fri, 10 Jul 2020 16:57:18 -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=@linux-foundation.org header.s=google header.b=LA1CntXR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726624AbgGJXyd (ORCPT + 99 others); Fri, 10 Jul 2020 19:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbgGJXyc (ORCPT ); Fri, 10 Jul 2020 19:54:32 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6FB5C08C5DC for ; Fri, 10 Jul 2020 16:54:31 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id d21so4101176lfb.6 for ; Fri, 10 Jul 2020 16:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yPDc4YWgWbGk7IZLwT7LmgyK3OX3orfZrqhUS49J9i0=; b=LA1CntXRcKmQW83MPwHEZBbcDVUsBDDKQRWXDlDwoPSEqy01AQ0676tLb6oG5OQ76x 8uXsgj3zVfAjePe0l1S9asa/XRPrJGIK9E3tqhBVaJLonFG1dnxkWRMIiYF9G8F1IGhX 11FkXxAr9F84B3gaxK1y7mnLddz1mJhnBVFbE= 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=yPDc4YWgWbGk7IZLwT7LmgyK3OX3orfZrqhUS49J9i0=; b=MdwCOvQn2xKeZ/lNJTDZqzX3aYVCBpI9lx2dHJqvQxtodm1IxyV0HlgPMzbwlmFVy2 3FP52FQHrdAhFYTQd4hZgCEnr3ou137BxOzA7WXYMBjYPW7IvbKX58tgOFGtVstoti4Z vgh/jewVFbxpNplFKBZkUDKdasAQQ8aWceSVw+5pqNdz2sdg3pwJ4nl42VZfTWtmLDKp QTpBwOupBeeRJYp4pBLrVuS5Al9obLMulIdkdL14g+Qa+fzEqJlLJliEizx2pMbXDkai lqO/vJ0F20REqoI3CHeFFwx2eHupmuwo9cY+VkzN14MoOsYfYajwtHri8exynbNIRTW8 nQlw== X-Gm-Message-State: AOAM531ej/7LPv+ZDXoPZyiQFqUJ58rhT04ZqlQMDG0kiOerm9GBtikx Xq39glNgzzileuNQB2Xs+lhaWaZJitM= X-Received: by 2002:a05:6512:52a:: with SMTP id o10mr45127417lfc.137.1594425269844; Fri, 10 Jul 2020 16:54:29 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id r19sm2378557ljm.32.2020.07.10.16.54.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jul 2020 16:54:28 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id e8so8306594ljb.0 for ; Fri, 10 Jul 2020 16:54:28 -0700 (PDT) X-Received: by 2002:a05:651c:1b6:: with SMTP id c22mr36528941ljn.421.1594425267920; Fri, 10 Jul 2020 16:54:27 -0700 (PDT) MIME-Version: 1.0 References: <20200710062803.GA1071395@kroah.com> <20200710125022.alry7wkymalmv3ge@wittgenstein> <20200710225934.GA16881@localhost> In-Reply-To: <20200710225934.GA16881@localhost> From: Linus Torvalds Date: Fri, 10 Jul 2020 16:54:11 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux kernel in-tree Rust support To: Josh Triplett Cc: Christian Brauner , Nick Desaulniers , alex.gaynor@gmail.com, Greg KH , geofft@ldpreload.com, jbaublitz@redhat.com, Masahiro Yamada , Miguel Ojeda , Steven Rostedt , LKML , clang-built-linux , Kees Cook Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 3:59 PM Josh Triplett wrote: > > As I recall, Greg's biggest condition for initial introduction of this > was to do the same kind of "turn this Kconfig option on and turn an > option under it off" trick that LTO uses, so that neither "make > allnoconfig" nor "make allyesconfig" would require Rust until we've had > plenty of time to experiment with it. No, please make it a "is rust available" automatic config option. The exact same way we already do the compiler versions and check for various availability of compiler flags at config time. See init/Kconfig for things like config LD_IS_LLD def_bool $(success,$(LD) -v | head -n 1 | grep -q LLD) and the rust support should be similar. Something like config RUST_IS_AVAILABLE def_bool $(success,$(RUST) ..sometest..) because I _don't_ want us to be in the situation where any new rust support isn't even build-tested by default. Quite the reverse. I'd want the first rust driver (or whatever) to be introduced in such a simple format that failures will be obvious and simple. The _worst_ situation to be in is that s (small) group of people start testing their very special situation, and do bad and crazy things because "nobody else cares, it's hidden". No, thank you. Linus