Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1064526rwb; Thu, 10 Nov 2022 10:41:40 -0800 (PST) X-Google-Smtp-Source: AMsMyM4jctx4z4/oHBejaLobcFp76gFMM9Qrs4hTpmklev3ydxq0SDyIyedPYyRHHYKLSSxAZtEh X-Received: by 2002:a62:e20e:0:b0:56c:6ec1:1f1e with SMTP id a14-20020a62e20e000000b0056c6ec11f1emr3240244pfi.7.1668105700481; Thu, 10 Nov 2022 10:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668105700; cv=none; d=google.com; s=arc-20160816; b=g+V0Nd6ITRZoeY8yaFnPGBqRyysCKfeKKcUztO09CO6p38rUplzkorepZmZ3oI5Xsd bLQ42DSTid2hh2ZwO9JwsBstSi4KC2kFF6uZL18y7jfAKkx5n6uXxh9hbqMIe31DzKm5 YjoAt7aHjGkKHWfIJ+FiDWuvISaULhhLflV06yX0aAGAeNbWLEumM6CWunBoF0peTB9t 45uxRkA7TLT5JDQn/HuoKjBUyiQ76Nl4DVAtBgt0wOlW4tLDAJEg/p0WkN4rOte9/rxA oITYoET6OPIiAzDZ8rJV/e+X8FDotdD8/RC9Qw/JVg6VwvFgPVEmdSAfAUq3w8CcWOvC FtNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature; bh=9kpITgtzcbJv0S4BDMGMha2mb2UADEkBMLljR4KrXhE=; b=Rn9dBFYPCg5Ku02VARBuz3unBByV//8tEQR4C3Fkp/juajBZmekd89DjzkrKBVU3q1 0z0IY3t2+8MDfomrvSq39kFhhTO4PyoIgn9Wb8JJ9N6cnP3Z0A1/bXf9HfbQ4G6HcfsT 9SGYCmFCXm0UNhC2B1vQc9X3+zLEhtxUcoUduC3CDVSsBk+DOk0NaohNHEbk8Hy1vLLc TMNs3KTxATC6y7MRK6BnsKbSD0yU9fKIslkXNoLVtRVMb/Tlpf6GJdEKb1KzThax5Grk UPNGh6kY72v1XZu3V/asFx1tL9wyxyOOSmmwcRveVDv+v5Xb1xPSPLp8Qz8mZiTKpecD W/Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JI6YIXta; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a654c87000000b0046fea833b07si22739697pgt.123.2022.11.10.10.41.27; Thu, 10 Nov 2022 10:41:40 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=JI6YIXta; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbiKJSGF (ORCPT + 92 others); Thu, 10 Nov 2022 13:06:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbiKJSGC (ORCPT ); Thu, 10 Nov 2022 13:06:02 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB3510D9; Thu, 10 Nov 2022 10:06:01 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id x18so1594812qki.4; Thu, 10 Nov 2022 10:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=9kpITgtzcbJv0S4BDMGMha2mb2UADEkBMLljR4KrXhE=; b=JI6YIXtaQsQTu4zkmXob1uhD/AxjtEUxDtq4QkvUChkoDwjL3PGr7JZ/FUZEvMCnzd Q/+sNyTYbre5PWofpt1TPHCzPIizEsJ4qOvkpnhHF+QYCdgWsdOKHjGNI51FhKfR0hLU ZoYNzNzdJKMc06psxjQG+rASoG66Yj6qAgBFnXREDIQQXV8LP4+qw/qHju4Bc3LS/7ZR Zb11Q7vcyvKUxvEgqNbRjsoD8vcFUe1Co5AVfHcZY5wR5XrbLTARlkqCG166ewnh1QTr rppjONQwur4r6XC5u1IIYHC3mym1QNU7EEa+/7AY8IFGNIUm/rog4sLkRqSBaSuRLEQd Ad4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9kpITgtzcbJv0S4BDMGMha2mb2UADEkBMLljR4KrXhE=; b=X3zFsEqYonFq6D7QlUZRWOtVQ5wvO5gdldxsuivI/27TLsoR1E50kwa9cSuaAJiIab WtFNh3/qTJ+ceUqze/RXsjNluwQH+wSHg1evSpboxTuNT1groDNQ/Tz98s0iAaZR7XnD F9qgLRQQuGZwstyPnzbBFDpkZ9vWpM08bsL4zrdEz4xtQiLNLY62w+aAdQ0OAKbcg0K5 TMjIY0ZR7FnXiwIFrB3hqxdH1R/FFZakPCAEW2BV8wWOvnCT3nrU4AlJxe1il5qjJSft EFcmmcL9xrB8/1MXTHSTm104JjwZxlI4q4QenfqOqxIyPd9gvc+C9BqdnL2ixGQZQ3OW GDTw== X-Gm-Message-State: ACrzQf3TuAQDmrj9AEuWOaqplWHuqzpMkuPFI6yZuWaCInOHgsNJ+j2k 8QZeQlF4ThebMxhqd9RsBiI= X-Received: by 2002:a05:620a:d5e:b0:6f9:2690:d33f with SMTP id o30-20020a05620a0d5e00b006f92690d33fmr48087596qkl.524.1668103560303; Thu, 10 Nov 2022 10:06:00 -0800 (PST) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id v11-20020a05622a188b00b0039a55f78792sm11728699qtc.89.2022.11.10.10.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 10:05:59 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 4D92A27C005B; Thu, 10 Nov 2022 13:05:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 10 Nov 2022 13:05:59 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfeeggdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepuehoqhhu nhcuhfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpeehudfgudffffetuedtvdehueevledvhfelleeivedtgeeuhfegueeviedu ffeivdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gsohhquhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeiledvgeehtdei gedqudejjeekheehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhlrdgtohhmsehfih igmhgvrdhnrghmvg X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Nov 2022 13:05:58 -0500 (EST) Date: Thu, 10 Nov 2022 10:05:57 -0800 From: Boqun Feng To: Miguel Ojeda Cc: Wedson Almeida Filho , Alex Gaynor , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v1 01/28] rust: prelude: split re-exports into groups Message-ID: References: <20221110164152.26136-1-ojeda@kernel.org> <20221110164152.26136-2-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110164152.26136-2-ojeda@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, Nov 10, 2022 at 05:41:13PM +0100, Miguel Ojeda wrote: > Split the prelude re-exports into groups: first the ones coming > from the `core` crate, then `alloc`, then our own crates and > finally the ones from modules from `kernel` itself (i.e. `super`). > > We are doing this manually for the moment, but ideally, long-term, > this could be automated via `rustfmt` with options such as > `group_imports` and `imports_granularity` (both currently unstable). > > Signed-off-by: Miguel Ojeda Reviewed-by: Boqun Feng Regards, Boqun > --- > rust/kernel/prelude.rs | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs > index 495e22250726..f8219285d8c0 100644 > --- a/rust/kernel/prelude.rs > +++ b/rust/kernel/prelude.rs > @@ -11,10 +11,14 @@ > //! use kernel::prelude::*; > //! ``` > > -pub use super::{ > - error::{Error, Result}, > - pr_emerg, pr_info, ThisModule, > -}; > -pub use alloc::{boxed::Box, vec::Vec}; > pub use core::pin::Pin; > + > +pub use alloc::{boxed::Box, vec::Vec}; > + > pub use macros::module; > + > +pub use super::{pr_emerg, pr_info}; > + > +pub use super::error::{Error, Result}; > + > +pub use super::ThisModule; > -- > 2.38.1 >