Re: [PATCH v20 4/8] rust: page: convert to `Ownable`
"Danilo Krummrich" <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.rust,gmane.linux.kernel.mm,gmane.linux.block,gmane.linux.kernel.lsm,gmane.comp.video.dri.devel,gmane.linux.file-systems,gmane.linux.power-management.general,gmane.linux.kernel.pci,gmane.linux.pwm,gmane.linux.usb.general |
|---|---|
| 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