From bf433ea9f6b5f3717b23700b50f996edd527e17d Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Wed, 31 Oct 2018 17:31:46 -0700 Subject: 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 Commit-Queue: Gurchetan Singh Tested-by: Gurchetan Singh Tested-by: kokoro --- devices/src/vfio.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'devices/src/vfio.rs') 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::*; -- cgit 1.4.1