[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tencent_DFB9918EA024C929E2BF3DE6EAF938EFB905@qq.com>
Date: Thu, 11 Dec 2025 23:17:48 +0800
From: yilin <1479826151@...com>
To: Danilo Krummrich <dakr@...nel.org>,
Miguel Ojeda <ojeda@...nel.org>
Cc: rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
yilin <1479826151@...com>
Subject: [PATCH 2/3] rust: dma: remove incorrect safety documentation
Removes a safety requirement that incorrectly states callers must
ensure the device does not access memory while the returned slice
is live, as this method doesn't return a slice.
Signed-off-by: yilin <1479826151@...com>
---
rust/kernel/dma.rs | 2 --
1 file changed, 2 deletions(-)
diff --git a/rust/kernel/dma.rs b/rust/kernel/dma.rs
index 84d3c6726..2ac107d8f 100644
--- a/rust/kernel/dma.rs
+++ b/rust/kernel/dma.rs
@@ -532,8 +532,6 @@ pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mu
///
/// # Safety
///
- /// * Callers must ensure that the device does not read/write to/from memory while the returned
- /// slice is live.
/// * Callers must ensure that this call does not race with a read or write to the same region
/// that overlaps with this write.
///
--
2.34.1
Powered by blists - more mailing lists