diff --git a/rust/kernel/file.rs b/rust/kernel/file.rs index 015c5284e1c616..091b3a4306c50b 100644 --- a/rust/kernel/file.rs +++ b/rust/kernel/file.rs @@ -12,7 +12,7 @@ use core::{mem::ManuallyDrop, ops::Deref}; /// /// # Invariants /// -/// The pointer [`File::ptr`] is non-null and valid. Its reference count is also non-zero. +/// The pointer `File::ptr` is non-null and valid. Its reference count is also non-zero. pub struct File { pub(crate) ptr: *mut bindings::file, } diff --git a/rust/kernel/file_operations.rs b/rust/kernel/file_operations.rs index 43f96fb1097ee1..b866b6668561c2 100644 --- a/rust/kernel/file_operations.rs +++ b/rust/kernel/file_operations.rs @@ -25,7 +25,7 @@ use crate::{ /// /// # Invariants /// -/// The pointer [`PollTable::ptr`] is null or valid. +/// The pointer `PollTable::ptr` is null or valid. pub struct PollTable { ptr: *mut bindings::poll_table_struct, } diff --git a/rust/kernel/iov_iter.rs b/rust/kernel/iov_iter.rs index 4a6f63e1650c19..d778e1ac976075 100644 --- a/rust/kernel/iov_iter.rs +++ b/rust/kernel/iov_iter.rs @@ -29,7 +29,7 @@ extern "C" { /// /// # Invariants /// -/// The pointer [`IovIter::ptr`] is non-null and valid. +/// The pointer `IovIter::ptr` is non-null and valid. pub struct IovIter { ptr: *mut bindings::iov_iter, } diff --git a/rust/kernel/pages.rs b/rust/kernel/pages.rs index 574f6c0662e2c9..4f45bef09bca4e 100644 --- a/rust/kernel/pages.rs +++ b/rust/kernel/pages.rs @@ -31,7 +31,7 @@ extern "C" { /// /// # Invariants /// -/// The pointer [`Pages::pages`] is valid and points to 2^ORDER pages. +/// The pointer `Pages::pages` is valid and points to 2^ORDER pages. pub struct Pages { pages: *mut bindings::page, } diff --git a/rust/kernel/task.rs b/rust/kernel/task.rs index d526d0056e7fdb..dcf376b992ec47 100644 --- a/rust/kernel/task.rs +++ b/rust/kernel/task.rs @@ -22,7 +22,7 @@ extern "C" { /// /// # Invariants /// -/// The pointer [`Task::ptr`] is non-null and valid. Its reference count is also non-zero. +/// The pointer `Task::ptr` is non-null and valid. Its reference count is also non-zero. /// /// # Examples ///