[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250917204135.7a796dd3@nimda.home>
Date: Wed, 17 Sep 2025 20:41:35 +0300
From: Onur Özkan <work@...rozkan.dev>
To: djfkvcing117@...il.com
Cc: linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org, gregkh
<gregkh@...uxfoundation.org>, lossin@...nel.org, gary@...yguo.net
Subject: Re: [PATCH v4] rust/fs: use intra-doc link for `EBADF` in
`BadFdError` docs
On Thu, 18 Sep 2025 00:50:59 +0800
djfkvcing117@...il.com wrote:
> From: Tong Li <djfkvcing117@...il.com>
>
> In rust/kernel/fs/file.rs, replace `EBADF` with [`EBADF`].
>
> This helps rust-analyzer to resolve such references.
>
> Suggested-by: Onur Özkan <work@...rozkan.dev>
> Link: https://github.com/Rust-for-Linux/linux/issues/1186
> Signed-off-by: Tong Li <djfkvcing117@...il.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;
>
Reviewed-by: Onur Özkan <work@...rozkan.dev>
Powered by blists - more mailing lists