From ddd8180a13d0f389d533026c667c8fe57ee5e8ee Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 26 May 2020 10:10:18 -0700 Subject: Fix VolatileSlice calls in all modules The VolatileSlice API changed, but some callers were not updated to match. Fix them up so that builds with additional features enabled (e.g. kokoro) pass again. BUG=None TEST=cargo test -p disk --features=composite-disk TEST=docker/wrapped_smoke_test.sh Change-Id: I97b3cd04549af30b7dc1515245f025d9439669bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2216399 Tested-by: Daniel Verkamp Auto-Submit: Daniel Verkamp Reviewed-by: Dylan Reid Reviewed-by: Zach Reizner Commit-Queue: Daniel Verkamp --- gpu_display/src/gpu_display_x.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpu_display') diff --git a/gpu_display/src/gpu_display_x.rs b/gpu_display/src/gpu_display_x.rs index 0882dc9..223fe08 100644 --- a/gpu_display/src/gpu_display_x.rs +++ b/gpu_display/src/gpu_display_x.rs @@ -202,7 +202,7 @@ impl Drop for Buffer { impl Buffer { fn as_volatile_slice(&self) -> VolatileSlice { - unsafe { VolatileSlice::new(self.segment_info.shmaddr as *mut _, self.size as u64) } + unsafe { VolatileSlice::from_raw_parts(self.segment_info.shmaddr as *mut _, self.size) } } fn stride(&self) -> usize { -- cgit 1.4.1