Skip to content

Commit f5d7233

Browse files
committed
drm/asahi: build VmReadGuard::covers_range only with the G15 backend
Only the G15 command checks use it. With DRM_ASAHI_M3_T8122=y and DRM_ASAHI_G15=n, W=1 warns that it is never used. Signed-off-by: Eryk Wieliczko <eryk@wieliczko.ninja> Assisted-by: Claude:claude-opus-5-5
1 parent 88e3cc7 commit f5d7233

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpu/drm/asahi/mmu.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ pub(crate) struct VmReadGuard(VmExecGuard);
363363

364364
#[cfg(CONFIG_DRM_ASAHI_UAT_ADOPTION)]
365365
impl VmReadGuard {
366+
#[cfg(CONFIG_DRM_ASAHI_G15)]
366367
pub(crate) fn covers_range(&mut self, address: u64, size: u64, read: bool, write: bool) -> bool {
367368
Vm::covers_range_locked(&mut self.0, address, size, read, write)
368369
}

0 commit comments

Comments
 (0)