Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6329632rwr; Tue, 9 May 2023 13:37:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PZPNK5+6Fuo2pgd8a2fOpJQa7pVsW3DSq05vOilWIYPZxFsKtyWKJy5Qt5CsX9N7niHHd X-Received: by 2002:a17:902:e550:b0:1a6:6f3f:bc3 with SMTP id n16-20020a170902e55000b001a66f3f0bc3mr21391261plf.57.1683664621614; Tue, 09 May 2023 13:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683664621; cv=none; d=google.com; s=arc-20160816; b=qutF3l4y0WQ2HmI0BLIFN/yWPQ66RS0aHaCY56ScOEUQWPEL0/4CqpSQy80UaOg4Ma Vq3Hd9EQLMIOPlvIcGVdZFFdGJhVTx21uupphsHITK2yeV6BlvktvjL0iMuxba/RL+jZ IArDm0PKsZLt3zQrVUlvIMSa4vlkqUXjwtkqwGpIkYJh0Ads7MdfK8Ojv128a7Cxd5EI anlhQm1U7BBd+YnxsPaTlX+eLZiZtYP/hPlGtstGMELXEPVEDWFAI2msrG5T7zvH7v4M a0lAS0NIRZ4ivqH5zAvkNOCPYeWsCrW28QpBqa6YSVG1WOrzLqD5w31tuugv2RKx4bSS 6ntQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+fA8ozPK1R+gWSVuxj7Oooge25CINHzv42GXaEYpyEU=; b=QasvHyfM0MXHWRsCMZ/gBQ2G6UvhyGulhxhxvDzYR2to/7M6Q3BCtocYg1L080vQSa haqei524gCaoqDNWvXK3/SdvdbDeODFMzF1dhmw38wu81FKgF7yYJsm67E1kSvm5xwuv af1wRGjjuA2/y4mk0B3cE6y/2gOmZ5xyv94RL/S2EKqII83AiVB0MVK3Z6mybp/Hh/39 KWIghP3k2qxNUxhh8EOQsuTSv52JW/IG9DLvpLvWUl4f37TfK1fXFTW4ChuxLrRRrQ2d eE1nfZBpFOcNQ2LaArEFLxzGhI/w8VN5Wk2D12RZamhIluf9T5pJ0euhu8Isd2B5DU4o ULvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NxSi6yL1; 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 m14-20020a170902db0e00b001aafec82436si2385411plx.204.2023.05.09.13.36.48; Tue, 09 May 2023 13:37:01 -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=@gmail.com header.s=20221208 header.b=NxSi6yL1; 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 S234814AbjEIUYh (ORCPT + 99 others); Tue, 9 May 2023 16:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjEIUYg (ORCPT ); Tue, 9 May 2023 16:24:36 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF0340C2; Tue, 9 May 2023 13:24:34 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3078fa679a7so3134194f8f.3; Tue, 09 May 2023 13:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683663873; x=1686255873; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+fA8ozPK1R+gWSVuxj7Oooge25CINHzv42GXaEYpyEU=; b=NxSi6yL1CDcUwPBB94+pd5DZhAra6avgmwN+C3k7c+U2jJfUkmL0b7hUufXqCK9Ywi 0aIqSEC8jKkZb2IHnaPkSrMcWJJ7/jnx+S2M44HNP7FJCj1cRggeLAO6ZMRO2WCX9Vc1 MmCH7YikUJcY/4gjomhr32NMY7DF3XLLEAFV8tbQjSP7vrnjr+0htuXOXr595E2Mu2RX cUaDYaxwrAvVHg7OSjHYpsoTBpFoAhEApUekxSj9L/1y5M1oTOUs6EtlPmXrBKG+JxLb CNOJlrnWLYQLR0MB9l1jf3D55mEBHZs3vDjTZovDczSIf5S9eSLb3xjZdesWWNdLDJU9 JOhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683663873; x=1686255873; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+fA8ozPK1R+gWSVuxj7Oooge25CINHzv42GXaEYpyEU=; b=QmQOOLHuyxgMrNtO/zjhGwng0kFi7HwyqbLn2QtvpT+NPe899x/LFhr/D2o9HcspLF sdvDWbeu3Pvn+kxeD1GN6+yCBzp3VNqdWqTyof9VYUGlSExdt3lcsKAt9Jpt5xEo1nqw 69o6tKzmrWNx+hhRfkqcAnGLazpsfPM+RVbWWu36f2+teu5XeYuFZcoobeDMsf1G7pkn BWoeQZ9EXqsPQSEaWtUea5Hz/jJUDbak4wxWa2Iz+SFyVqfdguX5EE30nFAMHthdoQiO TNAanV+hA3JdcPRPs9vOOKhAnGCcBFKOaL9JSKi2BmHBsT38GIPaML9CnJyP3jrtgZtN IR/A== X-Gm-Message-State: AC+VfDzo2n8Ame8PbJ/udTNBEQh1rJdFp0Tr+j/ycNbTh/e4/o53S1Tp 76/oNsnQWu/IPOhjpmdA758= X-Received: by 2002:adf:ef4a:0:b0:306:44a9:76a0 with SMTP id c10-20020adfef4a000000b0030644a976a0mr11768165wrp.9.1683663872870; Tue, 09 May 2023 13:24:32 -0700 (PDT) Received: from localhost.localdomain ([2.222.93.88]) by smtp.gmail.com with ESMTPSA id d18-20020adfe852000000b002fe13ec49fasm15196126wrn.98.2023.05.09.13.24.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 13:24:32 -0700 (PDT) From: Ben Gooding To: miguel.ojeda.sandonis@gmail.com Cc: alex.gaynor@gmail.com, ben.gooding.dev@gmail.com, benno.lossin@proton.me, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, gary@garyguo.net, linux-kernel@vger.kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, wedsonaf@gmail.com, yakoyoku@gmail.com Subject: [PATCH v2] rust: lock: Add intra-doc links to the Backend trait Date: Tue, 9 May 2023 21:23:14 +0100 Message-Id: <20230509202314.8248-1-ben.gooding.dev@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Add missing intra-doc links to the Backend trait to make navigating the documentation easier. Suggested-by: Benno Lossin Link: https://lore.kernel.org/rust-for-linux/94625fe6-b87a-a8f0-5b2a-a8152d5f7436@proton.me/ Link: https://github.com/Rust-for-Linux/linux/issues/1001 Signed-off-by: Ben Gooding --- rust/kernel/sync/lock.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/kernel/sync/lock.rs b/rust/kernel/sync/lock.rs index a2216325632d..05ac8107ff3c 100644 --- a/rust/kernel/sync/lock.rs +++ b/rust/kernel/sync/lock.rs @@ -72,8 +72,8 @@ pub unsafe trait Backend { /// A mutual exclusion primitive. /// -/// Exposes one of the kernel locking primitives. Which one is exposed depends on the lock backend -/// specified as the generic parameter `B`. +/// Exposes one of the kernel locking primitives. Which one is exposed depends on the lock +/// [`Backend`] specified as the generic parameter `B`. #[pin_data] pub struct Lock { /// The kernel lock object. @@ -126,7 +126,7 @@ impl Lock { /// A lock guard. /// -/// Allows mutual exclusion primitives that implement the `Backend` trait to automatically unlock +/// Allows mutual exclusion primitives that implement the [`Backend`] trait to automatically unlock /// when a guard goes out of scope. It also provides a safe and convenient way to access the data /// protected by the lock. #[must_use = "the lock unlocks immediately when the guard is unused"] -- 2.34.1