Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1181353rwb; Tue, 27 Sep 2022 09:24:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7nyejN3bq6BWxREEGHknXfO/ueafdbyzPmtQnXIqzL1utnitOJ7iqyPbOt9nvfWqR6FBsu X-Received: by 2002:a05:6402:5249:b0:451:67ff:f02 with SMTP id t9-20020a056402524900b0045167ff0f02mr29145483edd.227.1664295892826; Tue, 27 Sep 2022 09:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664295892; cv=none; d=google.com; s=arc-20160816; b=g4NW5kS8IOFwNOXv0o/H5OjDk91uTMzo/wTo3QbUx24Jo1HZYGWy8XL6+6Jffdz1Uf RyVjKaF2ZRftnKbZT2zQTPPmSaqK+TmwdWVWXkA5vbvvFRck6A6VyPNPE0GYFE6u28vz FcJfQuTtYtTbskNoZPUN67FkcMONXBaoiNriP9q1derXM47XQ1+5PFvQ9EAXFVeVXVYe 9VIOfur53nu1jpZjQUK6ezinEfjrQ9xieV2ST5CpooJpvsdvB6bgZT5FqjB0nPvh3dpa ZZXosNSY7zMJcqdMjfMTDatMTRZmAi9AsfLZEpOcbLkT8aHNAuaSPiMDhnya015OLbHa mTIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rA6jU2S0uWMoiPNjZJDCiWA5aumbGF09egdZsB6VsqM=; b=of3o13q2PpnKspqe95/ZkRKGkGIMyQgrOER6q0UemvEUEMYHp8ayL/K1tu29c+ALNO LVXImzPUIVSZu/siBkWjPSNlspf4r03gwmMWNdW3t1o7PHb3NIXwjgbPXWN+LNrgBGuv InjwDLK3svcU3WqNIYUU/gA82M7KhC/tPtBLtUvgOLKbGE+YTu6qBIDG7nXM6xvb+d/4 Dqg5YlapjIwgSlp+IEFuypSgYg7F9jjgiKHSgmwORw1GZ6YFMGnOQHs/wMBXFErfq2Ul cPt8iGWpy8W4IqN7MhebcIe4zulHYJOHP2t4Hi6ycyVyRew+mRlvVzEbaF4QKztjJNl4 QBYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mRLNLDcz; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a50e616000000b004523a858b37si2013251edm.46.2022.09.27.09.24.26; Tue, 27 Sep 2022 09:24:52 -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=@linuxfoundation.org header.s=korg header.b=mRLNLDcz; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232425AbiI0Pgt (ORCPT + 99 others); Tue, 27 Sep 2022 11:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232505AbiI0PgF (ORCPT ); Tue, 27 Sep 2022 11:36:05 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD06917581; Tue, 27 Sep 2022 08:35:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id B7993CE1952; Tue, 27 Sep 2022 15:35:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F438C433C1; Tue, 27 Sep 2022 15:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664292927; bh=sFsv2vn2MuycGfKw5zcFhEp9tzgTNZNiYQitk3gLW3c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mRLNLDczWJyVtq2nhSSwUk+2kSk3aJDhURRQN8jmpfX3K/WhFVNNoc0WuOeSWfu0b lSreBZmmsTa7dhVfyEGYWRNm6pNGYnwfyRr75ufUAi+kPUpH7HmONb9ZxecQtI7q9/ LNk7tT+QFeIPXe6sBG4qXCQHD07IltGPwHfwavmU= Date: Tue, 27 Sep 2022 17:35:24 +0200 From: Greg Kroah-Hartman To: Miguel Ojeda Cc: Linus Torvalds , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Wedson Almeida Filho , Gary Guo , Matthew Bakhtiari , Boqun Feng , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron Subject: Re: [PATCH v10 08/27] rust: adapt `alloc` crate to the kernel Message-ID: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-9-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927131518.30000-9-ojeda@kernel.org> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, Sep 27, 2022 at 03:14:39PM +0200, Miguel Ojeda wrote: > This customizes the subset of the Rust standard library `alloc` that > was just imported as-is, mainly by: > > - Adding SPDX license identifiers. > > - Skipping modules (e.g. `rc` and `sync`) via new `cfg`s. > > - Adding fallible (`try_*`) versions of existing infallible methods > (i.e. returning a `Result` instead of panicking). > > Since the standard library requires stable/unstable attributes, > these additions are annotated with: > > #[stable(feature = "kernel", since = "1.0.0")] > > Using "kernel" as the feature allows to have the additions > clearly marked. The "1.0.0" version is just a placeholder. > > (At the moment, only one is needed, but in the future more > fallible methods will be added). > > Co-developed-by: Alex Gaynor > Signed-off-by: Alex Gaynor > Co-developed-by: Wedson Almeida Filho > Signed-off-by: Wedson Almeida Filho > Co-developed-by: Gary Guo > Signed-off-by: Gary Guo > Co-developed-by: Matthew Bakhtiari > Signed-off-by: Matthew Bakhtiari > Signed-off-by: Miguel Ojeda > --- Reviewed-by: Greg Kroah-Hartman