Re: [PATCH v18 1/4] rust: drm: gem: shmem: Add DmaResvGuard helper

From: lyude

Date: Mon Jun 08 2026 - 13:10:49 EST


I think I have just been defaulting to always for anything that seems
like it should be unquestionably inlined - should I be defaulting to
#[inline] instead?

On Sun, 2026-06-07 at 13:22 +0100, Gary Guo wrote:
> > +impl<'a, T: DriverObject, C: DeviceContext> DmaResvGuard<'a, T, C>
> > {
> > +    #[inline(always)]
>
> Why `always` here?
>
> Best,
> Gary