virtio-devices: Stop deriving unnecessary traits

These structs only need to derive Versionize now.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-05-11 14:02:43 +00:00
committed by Sebastien Boeuf
parent 6e6f66de2e
commit bd724fc304
8 changed files with 11 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ const VIRTIO_PMEM_RESP_TYPE_EIO: u32 = 1;
// New descriptors are pending on the virtio queue.
const QUEUE_AVAIL_EVENT: u16 = EPOLL_HELPER_EVENT_LAST + 1;
#[derive(Copy, Clone, Debug, Default, Serialize, Deserialize, Versionize)]
#[derive(Copy, Clone, Debug, Default, Versionize)]
#[repr(C)]
struct VirtioPmemConfig {
start: u64,
@@ -269,7 +269,7 @@ pub struct Pmem {
_region: MmapRegion,
}
#[derive(Serialize, Deserialize, Versionize)]
#[derive(Versionize)]
pub struct PmemState {
avail_features: u64,
acked_features: u64,