diff --git a/drivers/gpu/drm/asahi/file.rs b/drivers/gpu/drm/asahi/file.rs index 37387915a9e7a..ca49c68f614ea 100644 --- a/drivers/gpu/drm/asahi/file.rs +++ b/drivers/gpu/drm/asahi/file.rs @@ -1233,7 +1233,7 @@ impl File { let count = usize::try_from(data.num_binds)?; let stride = usize::try_from(data.stride)?; let size = stride.checked_mul(count).ok_or(EOVERFLOW)?; - let mut bytes = KVec::new(); + let mut bytes = KVVec::new(); UserSlice::new(UserPtr::from_addr(data.userptr as usize), size) .reader() .read_all(&mut bytes, GFP_KERNEL)?; diff --git a/drivers/gpu/drm/asahi/mmu/bind.rs b/drivers/gpu/drm/asahi/mmu/bind.rs index 84f7d0fcd8127..0cfe69fa76934 100644 --- a/drivers/gpu/drm/asahi/mmu/bind.rs +++ b/drivers/gpu/drm/asahi/mmu/bind.rs @@ -44,14 +44,14 @@ pub(super) enum PreparedUserBindOp { /// then reclaims them itself, on every path. pub(crate) struct PreparedUserBindBatch<'a> { vm: &'a Vm, - pub(super) ops: KVec, + pub(super) ops: KVVec, } impl<'a> PreparedUserBindBatch<'a> { pub(crate) fn new(vm: &'a Vm, capacity: usize) -> Result { Ok(Self { vm, - ops: KVec::with_capacity(capacity, GFP_KERNEL)?, + ops: KVVec::with_capacity(capacity, GFP_KERNEL)?, }) } pub(crate) fn push_map(&mut self, map: PreparedUserMap) -> Result {