* [PATCH] rust: id_pool: fix broken intra-doc link
@ 2025-11-27 21:33 Miguel Ojeda
2025-11-28 2:15 ` Yury Norov
2025-11-28 9:30 ` Alice Ryhl
0 siblings, 2 replies; 5+ messages in thread
From: Miguel Ojeda @ 2025-11-27 21:33 UTC (permalink / raw)
To: Alice Ryhl, Burak Emir, Miguel Ojeda, Alex Gaynor
Cc: Yury Norov, Boqun Feng, Gary Guo, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches
`rustdoc` detects a broken intra-doc link:
error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN`
--> rust/kernel/id_pool.rs:100:31
|
100 | /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN`
|
= 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.
It was a missed rename in v5 of the patch series adding this [1].
Fixes: feb3fdf1239a ("rust: id_pool: do not supply starting capacity")
Link: https://lore.kernel.org/all/20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com/ [1]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
I saw this in next-20251127.
I think using [`BitmapVec::MAX_INLINE_LEN`] is clearer in general,
especially for things in other modules, but I kept the same style as
other links in the file.
rust/kernel/id_pool.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/id_pool.rs b/rust/kernel/id_pool.rs
index a4c37d6a0971..73a952d7dd83 100644
--- a/rust/kernel/id_pool.rs
+++ b/rust/kernel/id_pool.rs
@@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> {
impl IdPool {
/// Constructs a new [`IdPool`].
///
- /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`].
+ /// The pool will have a capacity of [`MAX_INLINE_LEN`].
///
- /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
+ /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN
#[inline]
pub fn new() -> Self {
Self {
base-commit: a322638c15a678168aeb8dc11c8760f8a053124d
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] rust: id_pool: fix broken intra-doc link 2025-11-27 21:33 [PATCH] rust: id_pool: fix broken intra-doc link Miguel Ojeda @ 2025-11-28 2:15 ` Yury Norov 2025-11-28 2:31 ` Yury Norov 2025-11-28 9:30 ` Alice Ryhl 1 sibling, 1 reply; 5+ messages in thread From: Yury Norov @ 2025-11-28 2:15 UTC (permalink / raw) To: Miguel Ojeda Cc: Alice Ryhl, Burak Emir, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel, patches On Thu, Nov 27, 2025 at 10:33:40PM +0100, Miguel Ojeda wrote: > `rustdoc` detects a broken intra-doc link: > > error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN` > --> rust/kernel/id_pool.rs:100:31 > | > 100 | /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN` > | > = 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. > > It was a missed rename in v5 of the patch series adding this [1]. > > Fixes: feb3fdf1239a ("rust: id_pool: do not supply starting capacity") > Link: https://lore.kernel.org/all/20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com/ [1] > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> > --- > I saw this in next-20251127. > > I think using [`BitmapVec::MAX_INLINE_LEN`] is clearer in general, > especially for things in other modules, but I kept the same style as > other links in the file. Thanks, added it on top of Alice's series. > rust/kernel/id_pool.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/rust/kernel/id_pool.rs b/rust/kernel/id_pool.rs > index a4c37d6a0971..73a952d7dd83 100644 > --- a/rust/kernel/id_pool.rs > +++ b/rust/kernel/id_pool.rs > @@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> { > impl IdPool { > /// Constructs a new [`IdPool`]. > /// > - /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`]. > + /// The pool will have a capacity of [`MAX_INLINE_LEN`]. > /// > - /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > + /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN > #[inline] > pub fn new() -> Self { > Self { > > base-commit: a322638c15a678168aeb8dc11c8760f8a053124d > -- > 2.52.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rust: id_pool: fix broken intra-doc link 2025-11-28 2:15 ` Yury Norov @ 2025-11-28 2:31 ` Yury Norov 2025-11-30 5:53 ` Philip Li 0 siblings, 1 reply; 5+ messages in thread From: Yury Norov @ 2025-11-28 2:31 UTC (permalink / raw) To: Miguel Ojeda Cc: Alice Ryhl, Burak Emir, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Trevor Gross, Philip Li, Yujie Liu, Stephen Rothwell, Danilo Krummrich, rust-for-linux, linux-kernel, patches + Philip Li <philip.li@intel.com> + Yujie Liu <yujie.liu@intel.com> + Stephen Rothwell <sfr@canb.auug.org.au> It seems, the below error wasn't caught by lkp, neither by linux-next. Can you guys please consider adding rustdoc target in your testing grid? Thanks, Yury On Thu, Nov 27, 2025 at 09:15:31PM -0500, Yury Norov wrote: > On Thu, Nov 27, 2025 at 10:33:40PM +0100, Miguel Ojeda wrote: > > `rustdoc` detects a broken intra-doc link: > > > > error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN` > > --> rust/kernel/id_pool.rs:100:31 > > | > > 100 | /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN` > > | > > = 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. > > > > It was a missed rename in v5 of the patch series adding this [1]. > > > > Fixes: feb3fdf1239a ("rust: id_pool: do not supply starting capacity") > > Link: https://lore.kernel.org/all/20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com/ [1] > > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> > > --- > > I saw this in next-20251127. > > > > I think using [`BitmapVec::MAX_INLINE_LEN`] is clearer in general, > > especially for things in other modules, but I kept the same style as > > other links in the file. > > Thanks, added it on top of Alice's series. > > > rust/kernel/id_pool.rs | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/rust/kernel/id_pool.rs b/rust/kernel/id_pool.rs > > index a4c37d6a0971..73a952d7dd83 100644 > > --- a/rust/kernel/id_pool.rs > > +++ b/rust/kernel/id_pool.rs > > @@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> { > > impl IdPool { > > /// Constructs a new [`IdPool`]. > > /// > > - /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`]. > > + /// The pool will have a capacity of [`MAX_INLINE_LEN`]. > > /// > > - /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > > + /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN > > #[inline] > > pub fn new() -> Self { > > Self { > > > > base-commit: a322638c15a678168aeb8dc11c8760f8a053124d > > -- > > 2.52.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rust: id_pool: fix broken intra-doc link 2025-11-28 2:31 ` Yury Norov @ 2025-11-30 5:53 ` Philip Li 0 siblings, 0 replies; 5+ messages in thread From: Philip Li @ 2025-11-30 5:53 UTC (permalink / raw) To: Yury Norov Cc: Miguel Ojeda, Alice Ryhl, Burak Emir, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Trevor Gross, Yujie Liu, Stephen Rothwell, Danilo Krummrich, rust-for-linux, linux-kernel, patches On Thu, Nov 27, 2025 at 09:31:54PM -0500, Yury Norov wrote: > + Philip Li <philip.li@intel.com> > + Yujie Liu <yujie.liu@intel.com> > + Stephen Rothwell <sfr@canb.auug.org.au> > > It seems, the below error wasn't caught by lkp, neither by linux-next. Sorry, the bot does have rustdoc running, but missed this one. > > Can you guys please consider adding rustdoc target in your testing > grid? Got it Yury, I will follow up this to make rustdoc check work effectively in the bot. > > Thanks, > Yury > > On Thu, Nov 27, 2025 at 09:15:31PM -0500, Yury Norov wrote: > > On Thu, Nov 27, 2025 at 10:33:40PM +0100, Miguel Ojeda wrote: > > > `rustdoc` detects a broken intra-doc link: > > > > > > error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN` > > > --> rust/kernel/id_pool.rs:100:31 > > > | > > > 100 | /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > > > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN` > > > | > > > = 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. > > > > > > It was a missed rename in v5 of the patch series adding this [1]. > > > > > > Fixes: feb3fdf1239a ("rust: id_pool: do not supply starting capacity") > > > Link: https://lore.kernel.org/all/20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com/ [1] > > > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> > > > --- > > > I saw this in next-20251127. > > > > > > I think using [`BitmapVec::MAX_INLINE_LEN`] is clearer in general, > > > especially for things in other modules, but I kept the same style as > > > other links in the file. > > > > Thanks, added it on top of Alice's series. > > > > > rust/kernel/id_pool.rs | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/rust/kernel/id_pool.rs b/rust/kernel/id_pool.rs > > > index a4c37d6a0971..73a952d7dd83 100644 > > > --- a/rust/kernel/id_pool.rs > > > +++ b/rust/kernel/id_pool.rs > > > @@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> { > > > impl IdPool { > > > /// Constructs a new [`IdPool`]. > > > /// > > > - /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`]. > > > + /// The pool will have a capacity of [`MAX_INLINE_LEN`]. > > > /// > > > - /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > > > + /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN > > > #[inline] > > > pub fn new() -> Self { > > > Self { > > > > > > base-commit: a322638c15a678168aeb8dc11c8760f8a053124d > > > -- > > > 2.52.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rust: id_pool: fix broken intra-doc link 2025-11-27 21:33 [PATCH] rust: id_pool: fix broken intra-doc link Miguel Ojeda 2025-11-28 2:15 ` Yury Norov @ 2025-11-28 9:30 ` Alice Ryhl 1 sibling, 0 replies; 5+ messages in thread From: Alice Ryhl @ 2025-11-28 9:30 UTC (permalink / raw) To: Miguel Ojeda Cc: Burak Emir, Alex Gaynor, Yury Norov, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel, patches On Thu, Nov 27, 2025 at 10:33:40PM +0100, Miguel Ojeda wrote: > `rustdoc` detects a broken intra-doc link: > > error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN` > --> rust/kernel/id_pool.rs:100:31 > | > 100 | /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN` > | > = 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. > > It was a missed rename in v5 of the patch series adding this [1]. > > Fixes: feb3fdf1239a ("rust: id_pool: do not supply starting capacity") > Link: https://lore.kernel.org/all/20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com/ [1] > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Thanks! Reviewed-by: Alice Ryhl <aliceryhl@google.com> ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-30 5:53 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-11-27 21:33 [PATCH] rust: id_pool: fix broken intra-doc link Miguel Ojeda 2025-11-28 2:15 ` Yury Norov 2025-11-28 2:31 ` Yury Norov 2025-11-30 5:53 ` Philip Li 2025-11-28 9:30 ` Alice Ryhl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).