From patchwork Wed Apr 5 19:35:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: y86-dev X-Patchwork-Id: 79874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp546411vqo; Wed, 5 Apr 2023 12:38:28 -0700 (PDT) X-Google-Smtp-Source: AKy350bVB9e0H1vUET6UE77khcufv6kyOtlozHCfdz38um0fNT6q0BEVLDFIpk9q9SY3v8dX3T+I X-Received: by 2002:a17:902:ecc8:b0:1a1:cc60:73ec with SMTP id a8-20020a170902ecc800b001a1cc6073ecmr9578004plh.38.1680723508431; Wed, 05 Apr 2023 12:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680723508; cv=none; d=google.com; s=arc-20160816; b=xzypYV0Z1CMaulbBPKCKh00X2gH22f/9Gvr+YKqruOs4eo/UWMwWZjNGYWkLG7n73X VM31vHbq+nHGxFkIGdWWf3mF27GRV7ZPGgmg1lQsroLTI5hFik7hwF59EaIDkjo0iyeQ 9NaadyYWyQbElPUBZMPO4ApFbNR4x9LSouov9FDsSbzZrPGI2ZA4fEtXgZOoG6BQMBBe WHSlrzr+JLMq6ho5tjCtlOhUT5eeudfKbUuRPQ6UJrgCdLnFJUBJYWHaBkMRo0Pxv1lR lQmzdinOE1OxD0941mkJ2fwCYNLYgceHndMEbFgfOBsnGtr53yztkZQlyEH2ukPR/d1h fotg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=0fJvllTidlaCaBo/L7PXilYIMiZzcU0zSrjFdHjiHhM=; b=kC+QiUjq2B1oD+t3m6mO6/0i8ZxsYQc3/mgXStwORv1DPr8X3mUzYTjmbtK03Tbf/t HRh3Y8lxeFx/+5yzIR8dmZj56ymVoWFSjSvwfx6FROZz18QGD258tYTXEszJ1AB6rgJW bGvNd5rKRHOh7BBpcI3yxUP383B9SJIC4GdIir+ZfVcBTYaSYhHUxUEtEmmNpn8x7f7c cQKVSIZivT51cXomajK8r/dAoj4WE2pBmAivmvkzcR21UDMnRV+k2Iwa5WtJlXrJHdKl /SLYzSV+WCBfmtPyZ30JlmrSho/VMLr4Zw/Pv+9cW2bVS5778INp0tp59RYLnOTl1u3n Nxkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Fxif8rej; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay2-20020a1709028b8200b0019e2eb49236si12071512plb.229.2023.04.05.12.38.16; Wed, 05 Apr 2023 12:38:28 -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=@protonmail.com header.s=protonmail3 header.b=Fxif8rej; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233385AbjDETfr (ORCPT + 99 others); Wed, 5 Apr 2023 15:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231886AbjDETfm (ORCPT ); Wed, 5 Apr 2023 15:35:42 -0400 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7E235BA0 for ; Wed, 5 Apr 2023 12:35:40 -0700 (PDT) Date: Wed, 05 Apr 2023 19:35:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1680723338; x=1680982538; bh=0fJvllTidlaCaBo/L7PXilYIMiZzcU0zSrjFdHjiHhM=; 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=Fxif8rejuKpk/l/W8YF7xN4PsUldUMWaYkCeF0cSmqf39ZQBQAPT5/VvAEaVQP8Qk yWOQtoDd/RLcY3hDXIzSMOmwV+u+0kinLF+jUrj+fnHm8Kg5kuPBw5HBWe632wBKq8 i/dd8/kUGR9Azl39wvXs4SQHkhpQAAiJMukJzAZL2N92z6sfN/DdPOjAK0bOEPoEOn BIkqCMFzyzoAMIU9h8mphq2nADjSG5xWg9QPGrZVsozZQW9ZnrJns6aABSXvTt+fyu /ec5bW+UPS+YPcZ/DkQ6UOi1YJIBMak2teChMLfbuaxC6xvCzzm02fSubkcN7kEsw/ 2Dxu1z2R2Q/3g== To: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Andreas Hindborg From: Benno Lossin Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Benno Lossin , Alice Ryhl , Andreas Hindborg Subject: [PATCH v6 01/15] rust: enable the `pin_macro` feature Message-ID: <20230405193445.745024-2-y86-dev@protonmail.com> In-Reply-To: <20230405193445.745024-1-y86-dev@protonmail.com> References: <20230405193445.745024-1-y86-dev@protonmail.com> Feedback-ID: 40624463:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762366333878168320?= X-GMAIL-MSGID: =?utf-8?q?1762366333878168320?= 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 Reviewed-by: Alice Ryhl Reviewed-by: Gary Guo Acked-by: Boqun Feng Cc: Andreas Hindborg Reviewed-by: Andreas Hindborg --- rust/kernel/lib.rs | 1 + scripts/Makefile.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.39.2 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 := core_ffi_c +rust_allowed_features := core_ffi_c,pin_macro rust_common_cmd = \ RUST_MODFILE=$(modfile) $(RUSTC_OR_CLIPPY) $(rust_flags) \