From patchwork Wed Dec 14 09:34:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Finn Behrens X-Patchwork-Id: 33131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp112542wrn; Wed, 14 Dec 2022 01:44:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oNXlNlZ0lguP3dnugqjqKAlEhCUpaHqztPVBMekmbdZRS1j2e6AugSM98TLBqooeh3T+u X-Received: by 2002:a17:907:a4c1:b0:7c0:a350:9d29 with SMTP id vq1-20020a170907a4c100b007c0a3509d29mr19997268ejc.18.1671011055763; Wed, 14 Dec 2022 01:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671011055; cv=none; d=google.com; s=arc-20160816; b=UMkjb4cLbWztE6MsGS5RvVyr3+nkPnSj5mdOmgoWkD2FZ9LeIkK5p0tuHjBIaABOOf tRQq3aaXU58BxIomanbJG26soyPrDyWqn4NXV0XDpwY33jwEWqD5+3wP8VW/B45Q0usx dVVbg58bfLauFUqqQyKSmizxSL5n1mWv4PALsC1ZObNsi0VBpDOrtlE2Q7QNDH1DxDzx klFskCsTtOtTnHjKJUzAAyk+zNzDx2Kf0vg+89aFWmGACbZHR64Z4DjQV4DEZ6mOjQcy q9gF5gzvpo06OoCQ6koh1VYG3Jrkp10tT+7gw6nog/vKhCDSInFpzJwVtcaXpHFg0f75 E7nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=JECLRqzznZVJcQFxEyTyGBYjuCU4Zk5HVm/KjeUQy0I=; b=UG1ekhTwDhRzuAXfvme+eRNIUhd9bwfDcPTS2hS0YztnJKedQgzXPd/Y2LMoAytkHe Ad0ORFx3ZbPG2TAVUbQA2FzGsu/o2qg6DJfmdgrZwP/5/v2g4a8jxIZzNc8B2Yaq5t+q WwNOZLlQkj9f7DJfO8RCpBgVgkPk47ulIluA6UfoGRht6o4YZvTDINn+DFxZnGvZ5rA4 4unx4bsdX0Vgi7ucCYZ75OJK8rVhWJK3ukjK0mgp2OFEwvb7qnDbLsZl3UC/28IOTZ0w FbxXgCghYrLfh/rbuLeSbOOvuLO3McQENbLpeSWoDWdAM7Bo2A2fbR/XCGao3KSibQoB rbXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nyantec.com header.s=default header.b=HwA7Mcra; 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=REJECT sp=REJECT dis=NONE) header.from=nyantec.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs12-20020a1709073e8c00b007c0a7286be2si11445177ejc.770.2022.12.14.01.43.49; Wed, 14 Dec 2022 01:44:15 -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=@nyantec.com header.s=default header.b=HwA7Mcra; 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=REJECT sp=REJECT dis=NONE) header.from=nyantec.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237912AbiLNJfN (ORCPT + 99 others); Wed, 14 Dec 2022 04:35:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237896AbiLNJfI (ORCPT ); Wed, 14 Dec 2022 04:35:08 -0500 Received: from mout-b-206.mailbox.org (mout-b-206.mailbox.org [IPv6:2001:67c:2050:102:465::206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF5F13E15; Wed, 14 Dec 2022 01:35:04 -0800 (PST) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-206.mailbox.org (Postfix) with ESMTPS id 4NX9FF23mNz9tNM; Wed, 14 Dec 2022 10:34:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nyantec.com; s=default; t=1671010497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=JECLRqzznZVJcQFxEyTyGBYjuCU4Zk5HVm/KjeUQy0I=; b=HwA7McrarJVH/sxyrgRgGr+zC/lc6vUMGrXbB/tPfqGIat/vDLQUeeEN7HVYKH+SAe69/X qkUjLPb4vIccxfoKgCP70xba6gUN+Nf10pRWqM19ElXmkU8Nm4n1bNvBqbvve3Y695x0BD pz/Ine/xCXK3TGkx9zS/MZiJnyH9mWgQQlgvEzNo7jtoEt1Le0Xy8fWBMLfd5O9TyzUvWw gr5JaRxFjsDLYr401Y5/pOY3bS41iBK0M0gjzWxMnsR57EH9ZtMW7d1m6FVowjMTRtdtWb /3LUycOpUR7lQDiXr7CT/8biL9mw+PGZswEr2KRhJklglw+SwcwiS3tuTXjekw== Date: Wed, 14 Dec 2022 10:34:51 +0100 From: Finn Behrens To: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?b?QmrDtnJu?= Roy Baron Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH] rust: prelude: prevent doc inline of external imports Message-ID: <20221214093451.zdyhmdyxwz73n6pe@imap.mailbox.org> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752182089071221853?= X-GMAIL-MSGID: =?utf-8?q?1752182089071221853?= This shows exactly where the items are from, previously the items from macros, alloc and core where shown as a decleration from the kernel crate, this shows the correct path. Signed-off-by: Finn Behrens Reviewed-by: Vincenzo Palazzo --- rust/kernel/prelude.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs index 7a90249ee9b9..917721e791b6 100644 --- a/rust/kernel/prelude.rs +++ b/rust/kernel/prelude.rs @@ -11,15 +11,21 @@ //! use kernel::prelude::*; //! ``` +#[doc(no_inline)] pub use core::pin::Pin; +#[doc(no_inline)] pub use alloc::{boxed::Box, vec::Vec}; +#[doc(no_inline)] pub use macros::{module, vtable}; pub use super::build_assert; -pub use super::{dbg, pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn}; +// super::std_vendor is hidden, which makes the macro inline for some reason +#[doc(no_inline)] +pub use super::dbg; +pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn}; pub use super::static_assert;