From patchwork Mon Apr 3 15:44:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: y86-dev X-Patchwork-Id: 78608 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2415004vqo; Mon, 3 Apr 2023 09:08:56 -0700 (PDT) X-Google-Smtp-Source: AK7set/yptXa9TiYCERoNXzGFut0A2/EHjF+DSnH3PrRD1EzRk4j1lulSh+vppC/8QcQQIggEWYA X-Received: by 2002:a05:6a20:4d97:b0:da:eb84:fcff with SMTP id gj23-20020a056a204d9700b000daeb84fcffmr32558801pzb.29.1680538136649; Mon, 03 Apr 2023 09:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680538136; cv=none; d=google.com; s=arc-20160816; b=Ze6O4IFNDetuyMifV4fezmWct8O/z78CUTBp5Q9/I7iALZwfJec3+halTQQcll4KUp tJ+THiy9YNzneWCC0RndIikmJ/uDgnw+7ZKPfix0vhvli3wrzlAylwWUXoT52DbjPazG /hWHXivDOn5vPdIB6YO2aPXBhcmxBD1/83eS5V1co+rwj0JUR+7Zdr8tPyjp/qsZbRRV TjwC8zexMdam8veNdQo6PKx3CLDQZYXPt2ESGPzHKukIpV+u9Tmur4TtZHyACWPH9+Iv LupA9OLleD3KqKMHCk8cSzgZSXkm+qvvbjseX1Y3ZH4yQZadvPyh8wv4rhFHMdeAgYQh Nkdg== 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=7nxZHxOhAzoNMJzCoKVQJKys6PjASailDBfwxDLnOB4=; b=NW/xTll7vUQJOex3KxhAFD5f25C06CZC6asIHnWrbsiVYzD2FZJ7gU5haRGSCPnJnA FMqP7bOg5jjSSeo9e6OkJZB1T6vckGnGfCQEnaTI5PtgPY17bBgkjWqbQwkgGewLcRJS PYuhT6F/pLT1jX7vViUs65ClG0nXTSAZf+lJUQQboxLF+JWrDn6NvNRA2Ox8u90dqFkI 7GdqEBDpgI6gxlAPNS+4X4oh0mOdFBsD300DHxHRBk2/971kKr8cU8IZD4adVfcskYcg JoNSXySZJH2Tb4CFVoT73TRiHdzKYSPcwwOhYqmvGJKXtOs4uvV+JhCm3WpYayLX5fmB vmMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Cx2g7RBL; 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 w190-20020a627bc7000000b0062597844bf2si8534773pfc.128.2023.04.03.09.08.44; Mon, 03 Apr 2023 09:08:56 -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=Cx2g7RBL; 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 S232773AbjDCPpA (ORCPT + 99 others); Mon, 3 Apr 2023 11:45:00 -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 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?1762171957209442466?= X-GMAIL-MSGID: =?utf-8?q?1762171957209442466?= 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 Reviewed-by: Alice Ryhl Reviewed-by: Gary Guo --- 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) \