From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDF03C07E9D for ; Tue, 27 Sep 2022 15:36:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbiI0Pgr (ORCPT ); Tue, 27 Sep 2022 11:36:47 -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> Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@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