From patchwork Fri Mar 31 21:51: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: 78007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp871315vqo; Fri, 31 Mar 2023 15:13:32 -0700 (PDT) X-Google-Smtp-Source: AKy350Z/ZGFMDGQg4ENbQ03Q3knaUHEQtzxF3AIbPEvCQVa3DwgV2nWIY5szBaTyfOswY99LYym0 X-Received: by 2002:a05:6402:1044:b0:4fa:eccd:9849 with SMTP id e4-20020a056402104400b004faeccd9849mr25119727edu.9.1680300812755; Fri, 31 Mar 2023 15:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680300812; cv=none; d=google.com; s=arc-20160816; b=0MeVrVifN9jfjN73fr5CV9MOAUcSuFJd1cI69E+Jmx14zg2c/l8quL3Ls31bsK7s3I VGvuQe7dIEdAa7+W5WHw5GqGta5XB9dk5FWCMLfdx1kr/FdPq90JFUY3ShzxZodmwk/g fKT6HlQ3fxi/cv/oACPz54z5wSRwRUygJNLaPOxPaGwAfYOkLkfHL5yCdKpSuwE1g5dZ 23vUWBakD6jsqnhQe/tFQZCigA/QOyoaGeBtY1rE4k7G+dyNyyQMyBooKFwXxWtqe/AI /Swx8IvaiiU74rbaETF3T3lLc3cMsbn2ReLHUjMPGx3fxVC/y3zPxMZvWM4DjYiTiywD NTkQ== 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=hROJyTm6NeZLJh+vRRO9kol8Xhevc/WCzv7AS4Ky5PI=; b=0v6axc0crSRVz7nkICpY2Vi5jtWK7RB+Tq4+l+tik3Tk0rAht/RjvM5tN0euXNW2vA h3oAZMQYZNez1ZYj4qej0rGmmwrDp/xFb6Hko2agosYjYNvbdp8vsP6krCe98wy2XGtI SybmSsyQnrUeRc9PzXC7rR+XplzJIRdoUce2kp6JvjZ2jQXa7ZtQ6qyneFDRmte8Mqwy K7sEjwQnQAb4VxGV7cZzFBt0N5V2/NijgGlJKFJrzvmCBgYanynOrcLNTA2hO4D/mr0p 4Rq4Fbe7TOI1FD85IUWq4Dym36D5Ex80yDHpaGjSvPIsJ25o2j4dpGeRyDUPJ7ZAjLkF G/2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Sn5nYBKD; 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 j1-20020aa7de81000000b004acc7a0756fsi3058653edv.457.2023.03.31.15.13.09; Fri, 31 Mar 2023 15:13:32 -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=Sn5nYBKD; 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 S232671AbjCaVxE (ORCPT + 99 others); Fri, 31 Mar 2023 17:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbjCaVxC (ORCPT ); Fri, 31 Mar 2023 17:53:02 -0400 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E58219A9 for ; Fri, 31 Mar 2023 14:52:34 -0700 (PDT) Date: Fri, 31 Mar 2023 21:51:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1680299509; x=1680558709; bh=hROJyTm6NeZLJh+vRRO9kol8Xhevc/WCzv7AS4Ky5PI=; 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=Sn5nYBKD4eegGoUxIP+3J1/1yvip3+a7+UsizNlGLHFjc01CEf209czQb+8GedlKG cBniXokJuBvOCMJlntdiBYTEPRWEHdZbhp2a8PbBYxb7wkv1ezhu+AI/2290vA8ZE5 Km/+vS2sKTFvG5fWcBJdaOLLmamgK0a2GhGSkLH8prturH5H/yfc9KcFfqo1BPLeXo f6WJ0ku3qmNl/4GSTMm1s/A/DqusdRUtAMa+aVe4fiU9R75Z91zz7RuO/yJRS2hovq ylSQ99BL8puCfTLoi80axvR49EyZ7r+TgHGOGiFxl5j6VV01tRgSQJwmDhBUpLoYcu BIZ/vS1rKzQUw== To: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl From: y86-dev@protonmail.com Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Benno Lossin , Andreas Hindborg , Alice Ryhl Subject: [PATCH v4 01/15] rust: enable the `pin_macro` feature Message-ID: <20230331215053.585759-2-y86-dev@protonmail.com> In-Reply-To: <20230331215053.585759-1-y86-dev@protonmail.com> References: <20230331215053.585759-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?1761922093025617790?= X-GMAIL-MSGID: =?utf-8?q?1761923104875414112?= From: Benno Lossin 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 --- rust/kernel/lib.rs | 1 + 1 file changed, 1 insertion(+) -- 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)]