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 E2895C76196 for ; Mon, 3 Apr 2023 15:44:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232578AbjDCPo6 (ORCPT ); Mon, 3 Apr 2023 11:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232771AbjDCPoy (ORCPT ); Mon, 3 Apr 2023 11:44:54 -0400 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A5D2D7B; Mon, 3 Apr 2023 08:44:52 -0700 (PDT) Date: Mon, 03 Apr 2023 15:44:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1680536690; x=1680795890; bh=7nxZHxOhAzoNMJzCoKVQJKys6PjASailDBfwxDLnOB4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Cx2g7RBLpzDbaUbQwxNkgD3qdKIkbTaM7JBBBO43xuWRsWxgxQNTedqG1FTT9X0TU RrOcV0qxl0fJKIkCZW9Jgc4Xd10SVjo40RuulBbSTDXDw8IJ2OtoSgkgn4DPRm0y1M Kf80v6RtZX/EVmVHPr2KbbCxcE/UE9T99GXOvn8pl/k+hUGlpV93OYTuG8MvV7oGTw +eDwdkI/t3ML9aeozrSNFa7gph4+IJx8CTHvQriNZ/Gj13PYWbxZ605xV9ZV/SpHCQ RkV33ySzQYkaRvW9Sb0gtXotJcGlla171k79XUeWwqjm4CPcGJMZJvx6YvHcxp7oUt GsYjvcgjASdEg== To: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl From: Benno Lossin Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Benno Lossin , Andreas Hindborg , Alice Ryhl Subject: [PATCH v5 01/15] rust: enable the `pin_macro` feature Message-ID: <20230403154422.168633-2-y86-dev@protonmail.com> In-Reply-To: <20230403154422.168633-1-y86-dev@protonmail.com> References: <20230403154422.168633-1-y86-dev@protonmail.com> Feedback-ID: 40624463:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org This feature enables the use of the `pin!` macro for the `stack_pin_init!` macro. This feature is already stabilized in Rust version 1.68. Signed-off-by: Benno Lossin Cc: Gary Guo Cc: Andreas Hindborg Cc: Alice Ryhl Acked-by: Boqun Feng --- rust/kernel/lib.rs | 1 + scripts/Makefile.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 223564f9f0cc..4317b6d5f50b 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -17,6 +17,7 @@ #![feature(core_ffi_c)] #![feature(dispatch_from_dyn)] #![feature(generic_associated_types)] +#![feature(pin_macro)] #![feature(receiver_trait)] #![feature(unsize)] diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 76323201232a..ba4102b9d94d 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -277,7 +277,7 @@ $(obj)/%.lst: $(src)/%.c FORCE # Compile Rust sources (.rs) # ------------------------------------------------------------------------= --- -rust_allowed_features :=3D core_ffi_c +rust_allowed_features :=3D core_ffi_c,pin_macro rust_common_cmd =3D \ =09RUST_MODFILE=3D$(modfile) $(RUSTC_OR_CLIPPY) $(rust_flags) \ -- 2.39.2