Re: [PATCH v20 4/8] rust: page: convert to `Ownable`

"Danilo Krummrich" <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux,dev.linux.lists.driver-core,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-block,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.linux-pm,org.kernel.vger.linux-pwm,org.kernel.vger.linux-security-module,org.kernel.vger.linux-usb,org.kvack.linux-mm
Message-ID <[email protected]>
On Mon Aug 24, 2026 at 1:17 PM CEST, Andreas Hindborg wrote:
>  rust/kernel/alloc/allocator.rs       |  19 +++---
>  rust/kernel/alloc/allocator/iter.rs  |   6 +-

Acked-by: Danilo Krummrich <[email protected]>

> -    pub unsafe fn to_page<'a>(ptr: NonNull<u8>) -> page::BorrowedPage<'a> {
> +    pub unsafe fn to_page<'a>(ptr: NonNull<u8>) -> &'a page::Page {

Of course the mechanical conversion is fine as is, but while at it, mind to just
import Page, such that the odd page::Page thing goes away?

Thanks,
Danilo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.