* [PATCH] rust: file: add intra-doc link for 'EBADF'
@ 2025-09-30  9:24 djfkvcing117
  2025-09-30  9:44 ` Miguel Ojeda
  0 siblings, 1 reply; 4+ messages in thread
From: djfkvcing117 @ 2025-09-30  9:24 UTC (permalink / raw)
  To: Alexander Viro, Christian Brauner
  Cc: Jan Kara, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich, linux-fsdevel, rust-for-linux,
	linux-kernel, Onur Ozkan, Tong Li
From: Tong Li <djfkvcing117@gmail.com>
Suggested-by: Onur Özkan <work@onurozkan.dev>
Link: https://github.com/Rust-for-Linux/linux/issues/1186
Signed-off-by: Tong Li <djfkvcing117@gmail.com>
---
 rust/kernel/fs/file.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/fs/file.rs b/rust/kernel/fs/file.rs
index 67a3654f0fd3..f3153f4c8560 100644
--- a/rust/kernel/fs/file.rs
+++ b/rust/kernel/fs/file.rs
@@ -448,9 +448,9 @@ fn drop(&mut self) {
     }
 }
 
-/// Represents the `EBADF` error code.
+/// Represents the [`EBADF`] error code.
 ///
-/// Used for methods that can only fail with `EBADF`.
+/// Used for methods that can only fail with [`EBADF`].
 #[derive(Copy, Clone, Eq, PartialEq)]
 pub struct BadFdError;
 
-- 
2.51.0
^ permalink raw reply related	[flat|nested] 4+ messages in thread
* Re: [PATCH] rust: file: add intra-doc link for 'EBADF'
  2025-09-30  9:24 [PATCH] rust: file: add intra-doc link for 'EBADF' djfkvcing117
@ 2025-09-30  9:44 ` Miguel Ojeda
  2025-09-30 11:02   ` [PATCH v2] " Tong Li
  0 siblings, 1 reply; 4+ messages in thread
From: Miguel Ojeda @ 2025-09-30  9:44 UTC (permalink / raw)
  To: djfkvcing117
  Cc: Alexander Viro, Christian Brauner, Jan Kara, Miguel Ojeda,
	Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, linux-fsdevel, rust-for-linux, linux-kernel,
	Onur Ozkan
On Tue, Sep 30, 2025 at 11:27 AM <djfkvcing117@gmail.com> wrote:
>
> From: Tong Li <djfkvcing117@gmail.com>
>
> Suggested-by: Onur Özkan <work@onurozkan.dev>
> Link: https://github.com/Rust-for-Linux/linux/issues/1186
> Signed-off-by: Tong Li <djfkvcing117@gmail.com>
Normally commits cannot have an empty message -- this one is trivial,
so it is not a big deal, but maintainers in general may complain. Up
to them, of course.
What you should normally do is explain the "why" of a change, i.e. why
we want to add an intra-doc link, its benefits.
Other than that, it seems like the formatting is good. If you fix the
From: header, then the From: line in the body is not needed and Git
should not add it anymore, but it is not a blocker.
Thanks!
Cheers,
Miguel
^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH v2] rust: file: add intra-doc link for 'EBADF'
  2025-09-30  9:44 ` Miguel Ojeda
@ 2025-09-30 11:02   ` Tong Li
  2025-10-06 10:34     ` Christian Brauner
  0 siblings, 1 reply; 4+ messages in thread
From: Tong Li @ 2025-09-30 11:02 UTC (permalink / raw)
  To: Miguel Ojeda, Alexander Viro, Christian Brauner
  Cc: Jan Kara, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, linux-fsdevel, rust-for-linux, linux-kernel,
	Tong Li, Onur Özkan
The `BadFdError` doc comment mentions the `EBADF` constant but does
not currently provide a navigation target for readers of the
generated docs. Turning the references into intra-doc links matches
the rest of the module and makes the documentation easier to
explore.
Suggested-by: Onur Özkan <work@onurozkan.dev>
Link: https://github.com/Rust-for-Linux/linux/issues/1186
Signed-off-by: Tong Li <djfkvcing117@gmail.com>
---
 rust/kernel/fs/file.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/fs/file.rs b/rust/kernel/fs/file.rs
index 67a3654f0fd3..f3153f4c8560 100644
--- a/rust/kernel/fs/file.rs
+++ b/rust/kernel/fs/file.rs
@@ -448,9 +448,9 @@ fn drop(&mut self) {
     }
 }
 
-/// Represents the `EBADF` error code.
+/// Represents the [`EBADF`] error code.
 ///
-/// Used for methods that can only fail with `EBADF`.
+/// Used for methods that can only fail with [`EBADF`].
 #[derive(Copy, Clone, Eq, PartialEq)]
 pub struct BadFdError;
 
-- 
2.51.0
^ permalink raw reply related	[flat|nested] 4+ messages in thread
* Re: [PATCH v2] rust: file: add intra-doc link for 'EBADF'
  2025-09-30 11:02   ` [PATCH v2] " Tong Li
@ 2025-10-06 10:34     ` Christian Brauner
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Brauner @ 2025-10-06 10:34 UTC (permalink / raw)
  To: Tong Li
  Cc: Christian Brauner, Jan Kara, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich, linux-fsdevel, rust-for-linux,
	linux-kernel, Onur Özkan, Miguel Ojeda, Alexander Viro
On Tue, 30 Sep 2025 19:02:58 +0800, Tong Li wrote:
> The `BadFdError` doc comment mentions the `EBADF` constant but does
> not currently provide a navigation target for readers of the
> generated docs. Turning the references into intra-doc links matches
> the rest of the module and makes the documentation easier to
> explore.
> 
> 
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] rust: file: add intra-doc link for 'EBADF'
      https://git.kernel.org/vfs/vfs/c/2b0b5bcc45a0
^ permalink raw reply	[flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-10-06 10:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30  9:24 [PATCH] rust: file: add intra-doc link for 'EBADF' djfkvcing117
2025-09-30  9:44 ` Miguel Ojeda
2025-09-30 11:02   ` [PATCH v2] " Tong Li
2025-10-06 10:34     ` Christian Brauner
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).