From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05E862FBDF3; Wed, 29 Oct 2025 18:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761761998; cv=none; b=urd/HDmYSbFrTPhuOfa6bFhiGwq/bNgcH7q3uhHNG/ds0u0iDW+t6alVgQIr3QKH4fO+RUciDT8dSTJTJAZpInSkjh1WI4Iuc3dlHXuhscBUAxDT2oVTSF3K6Nw+yVa3XsRbsaK/bo8HXA9sgSzhzN6dwIEl4mAhvKgegWR9z/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761761998; c=relaxed/simple; bh=N96ksOH8Ew4fqM5Q6PU+k0xcS/HzqCdKtC6Q9u3X2NM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=krAvRy4clzzsVmEUw/2KPbGJYrnhTmL3QXAyyXSOiwXaePjH15SWZ1AdOnMcjSzIfuuOxy379i34uon/ppw3XP8P3IckN4xcDKIkHJmitpMFC66xwZYMnfMqkuOUVUr0LxQjEsVDsj+pldhqaqJ7RoOk2hizmoVNpLr+oUaC6OE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MiBQPina; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MiBQPina" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C879C4CEFB; Wed, 29 Oct 2025 18:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761761997; bh=N96ksOH8Ew4fqM5Q6PU+k0xcS/HzqCdKtC6Q9u3X2NM=; h=From:To:Cc:Subject:Date:From; b=MiBQPinaYQ/xa+vyjI9AiELAmHPFPnKSQEsOxxS+zRIWznFHhX0XiH6NEr657+GzQ vXgud8uWntdwnC1ohFZZ245fosmUee61jkVGFl9ZuAz9N8kcYRB5LZIbq6DiTDebiD CErZba3tt/uH3WgkYPM4b+oTmXBbcfIYbYUZIKN8RO99lbFXcmGZ0KR4b8XKSxm57P 64Q8g5Nd5nXN6/eoOEphZ6JYTHwL1kOD5UWRItG7mehDN+jzjY2WnK+FrDD2+LptGg 3Wq1W9ely9vdXpgrUrY5uMCDyHddsGhkOya9MGiuEPehm5hPvytI5y4MW+nFFH52o/ 21lreO4LodCfQ== From: Miguel Ojeda To: Michal Wilczynski , Miguel Ojeda , Alex Gaynor Cc: linux-pwm@vger.kernel.org, rust-for-linux@vger.kernel.org, Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH] pwm: fix broken intra-doc link Date: Wed, 29 Oct 2025 19:19:40 +0100 Message-ID: <20251029181940.780629-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit `rustdoc` reports a broken intra-doc link: error: unresolved link to `Devres::register` --> rust/kernel/pwm.rs:722:11 | 722 | /// via [`Devres::register`]. This ties the lifetime of the PWM chip registration | ^^^^^^^^^^^^^^^^ no item named `Devres` in scope | = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` Thus fix it. Fixes: a3d5a2b8da94 ("rust: pwm: Add complete abstraction layer") Signed-off-by: Miguel Ojeda --- If you usually rebase your tree, please feel free to do so instead. Thanks! rust/kernel/pwm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs index 79fbb13cd47f..84000192209d 100644 --- a/rust/kernel/pwm.rs +++ b/rust/kernel/pwm.rs @@ -714,7 +714,7 @@ unsafe impl Sync for Chip {} /// A resource guard that ensures `pwmchip_remove` is called on drop. /// /// This struct is intended to be managed by the `devres` framework by transferring its ownership -/// via [`Devres::register`]. This ties the lifetime of the PWM chip registration +/// via [`devres::register`]. This ties the lifetime of the PWM chip registration /// to the lifetime of the underlying device. pub struct Registration { chip: ARef>, base-commit: 04a698c800c25149f9aa379250e78f737adeb3f1 -- 2.51.2