From patchwork Sat Apr 8 12:25:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: y86-dev X-Patchwork-Id: 81193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp851487vqo; Sat, 8 Apr 2023 05:44:11 -0700 (PDT) X-Google-Smtp-Source: AKy350boRsNHVvFH6LQs8uKP1T21edGBr6mp3iS/yU6iAJ+86GlUMjWaoOeEewwzHRMwaso9FeVb X-Received: by 2002:a05:6402:11d1:b0:504:781e:7f44 with SMTP id j17-20020a05640211d100b00504781e7f44mr4379692edw.20.1680957851549; Sat, 08 Apr 2023 05:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680957851; cv=none; d=google.com; s=arc-20160816; b=FLZngf4ZaB/I9z2g42AP85bUWpzabSM/USxUiAqgCYqMAnmps4IEE97aSkpVdGO8a/ nO8Gp5VyJ4RFdFcrEpXhzXZwzjGE0IkumD6m6vE5Icc6qFiJpoOjN0V0y3Gx6oMbjMui WxlnahZ6F3nMcCsoCpGMtbV7ZyBMPPvjAvMLkeCYnf8kzgK8LGH9XypSeUGTDhK52XG/ 2By4eEr21vZ5SgUa5lYCz8tua3owZPhhofMpat4PxwksnbYEOhA9H32AGbx/ZBfUvBGi Y70nHy17EgtVg3uIGZ0Kr2cTrwd66vhlRibJQk241j6Qc2ILoFtSC/tL4gJ7YGdnXe7i 02HA== 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=Li9vFOtyOn1yzZsM8xsVc5+dXMyMO7EVK2qob/N7lA8=; b=G44dF7i5uYYV8CTvXRX10igJJE/EtzcxT/sYaZsXp2ShxsdFT28lOZS8IoN/G5GqwE JU7pAb0Vkg3ar6DdUTXMJ8AYQ9ELRj0+qZb7o95uswBVQT5kvEGiQaYha3YFMXuWnXVP TK56EVlehDwd9P+MgGpUELq/DR7lFFzDxwgXDjXMhR/s7EpEsBbs8rV4sNEJbcadKinD FltYliET6Mfwgkv54pdSOLI6EgBiZ/RD+tbiBBmAHTwXtRzPLZPrlo2E5FFi6BQIPQ2e eQBeJcJwVcS2PR+jaKadoQraQz/6oAhvQ0v+Nq6k7XsvDnnSwgEH6Yat/oAp0ewhodey md3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=TRYjC4gV; 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 r13-20020aa7d14d000000b004acc81d5053si5523222edo.616.2023.04.08.05.43.46; Sat, 08 Apr 2023 05:44:11 -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=TRYjC4gV; 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 S230129AbjDHMZg (ORCPT + 99 others); Sat, 8 Apr 2023 08:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjDHMZc (ORCPT ); Sat, 8 Apr 2023 08:25:32 -0400 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9399CFF0F; Sat, 8 Apr 2023 05:25:31 -0700 (PDT) Date: Sat, 08 Apr 2023 12:25:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1680956729; x=1681215929; bh=Li9vFOtyOn1yzZsM8xsVc5+dXMyMO7EVK2qob/N7lA8=; 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=TRYjC4gVMn/a6jq0zUpOGC9+Us99TXZ3EPJ9M/Q0Zr+iqSmQHT7eicBvYtlZ/cyES /e7gKccqGecOFm+XJgttupJD2mTcYygdSkR8nR+pInbH0zXY5Q9VL2i21cxRS9kJNP H+g69O7PNbPIlvR0lkH5+ivWTn4IcM44Nj4SSAOYQCV2+tJuXWgMGGwG6sAcy72CMv HCoV785h+6h/zg+2KrCYSUrHGIG+p8oby5HbBotBDaB6Mq4ox5ox2ZEMTEOQXwTUw8 bNM2MnwCzj47+E3yviTYfZwKCtdEr+AlpOkt/7iGSEe8LYCYeSJ4xRvPQS3cc5OSxa 4yCmUz7YhAWfg== 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 v7 01/15] rust: enable the `pin_macro` feature Message-ID: <20230408122429.1103522-2-y86-dev@protonmail.com> In-Reply-To: <20230408122429.1103522-1-y86-dev@protonmail.com> References: <20230408122429.1103522-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?1762612059911788299?= X-GMAIL-MSGID: =?utf-8?q?1762612059911788299?= 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 Reviewed-by: Andreas Hindborg Acked-by: Boqun Feng --- 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) \