From: Danilo Krummrich Date: Mon, 25 May 2026 22:58:31 +0000 (+0200) Subject: gpu: nova-core: replace ARef with &'bound Device in SysmemFlush X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17b6544ec14198b53bcd546f891b3b22d0a015b2;p=thirdparty%2Fkernel%2Flinux.git gpu: nova-core: replace ARef with &'bound Device in SysmemFlush Now that SysmemFlush is lifetime-parameterized, the ARef is unnecessary -- a plain &'bound Device reference suffices. Reviewed-by: Eliot Courtney Reviewed-by: Alexandre Courbot Tested-by: Alexandre Courbot Link: https://patch.msgid.link/20260525225838.276108-4-dakr@kernel.org Signed-off-by: Danilo Krummrich --- diff --git a/drivers/gpu/nova-core/fb.rs b/drivers/gpu/nova-core/fb.rs index 3b3271790cc97..1fb65d4eb290f 100644 --- a/drivers/gpu/nova-core/fb.rs +++ b/drivers/gpu/nova-core/fb.rs @@ -15,8 +15,7 @@ use kernel::{ Alignable, Alignment, // }, - sizes::*, - sync::aref::ARef, // + sizes::*, // }; use crate::{ @@ -46,7 +45,7 @@ mod hal; pub(crate) struct SysmemFlush<'sys> { /// Chipset we are operating on. chipset: Chipset, - device: ARef, + device: &'sys device::Device, bar: &'sys Bar0, /// Keep the page alive as long as we need it. page: CoherentHandle, @@ -55,7 +54,7 @@ pub(crate) struct SysmemFlush<'sys> { impl<'sys> SysmemFlush<'sys> { /// Allocate a memory page and register it as the sysmem flush page. pub(crate) fn register( - dev: &device::Device, + dev: &'sys device::Device, bar: &'sys Bar0, chipset: Chipset, ) -> Result { @@ -65,7 +64,7 @@ impl<'sys> SysmemFlush<'sys> { Ok(Self { chipset, - device: dev.into(), + device: dev, bar, page, })