diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2018-10-31 17:31:46 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-11 00:34:36 +0000 |
commit | bf433ea9f6b5f3717b23700b50f996edd527e17d (patch) | |
tree | 7853dbffb71a0f76e00e60ac9685b09a4d3906db /devices/src | |
parent | 65b98f1ccc2ce1d52c12f75a224a259fd399e555 (diff) | |
download | crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.tar crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.tar.gz crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.tar.bz2 crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.tar.lz crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.tar.xz crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.tar.zst crosvm-bf433ea9f6b5f3717b23700b50f996edd527e17d.zip |
crosvm: move vec_with_array_field to data_model
Move it to the newly created flexible array file. BUG=chromium:892806 TEST=compiles Change-Id: I6c423a885cec17e376b0da87a4adbd17c71ff6f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1325510 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'devices/src')
-rw-r--r-- | devices/src/vfio.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devices/src/vfio.rs b/devices/src/vfio.rs index c42c622..f8c15c8 100644 --- a/devices/src/vfio.rs +++ b/devices/src/vfio.rs @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +use data_model::vec_with_array_field; use std::ffi::CString; use std::fmt; use std::fs::{File, OpenOptions}; @@ -14,8 +15,8 @@ use std::u32; use kvm::Vm; use sys_util::{ - ioctl, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref, ioctl_with_val, - vec_with_array_field, warn, Error, EventFd, GuestMemory, + ioctl, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref, ioctl_with_val, warn, Error, + EventFd, GuestMemory, }; use vfio_sys::*; |