Skip to content

Remove warnings during build and unit test #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion devices/src/virtio/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ mod tests {
use std::fs::OpenOptions;
use std::path::PathBuf;
use std::sync::mpsc::Receiver;
use std::ascii::AsciiExt;
use libc;
use sys_util::TempDir;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From ad2d80366b046fcfdeb9e666d45ae2c07879894e Mon Sep 17 00:00:00 2001
From: Diana Popa <[email protected]>
Date: Mon, 30 Apr 2018 13:03:20 +0300
Subject: [PATCH] virtio_sys: removing warning on packed struct...

containing an unaligned field.

Signed-off-by: Diana Popa <[email protected]>
---
virtio_sys/src/virtio_net.rs | 1 -
1 file changed, 1 deletion(-)

diff --git a/virtio_sys/src/virtio_net.rs b/virtio_sys/src/virtio_net.rs
index a75a216..7e1f795 100644
--- a/virtio_sys/src/virtio_net.rs
+++ b/virtio_sys/src/virtio_net.rs
@@ -599,7 +599,6 @@ fn bindgen_test_layout_virtio_net_ctrl_hdr() {
}
pub type virtio_net_ctrl_ack = __u8;
#[repr(C, packed)]
-#[derive(Debug, Default)]
pub struct virtio_net_ctrl_mac {
pub entries: __virtio32,
pub macs: __IncompleteArrayField<[__u8; 6usize]>,
--
2.7.4

1 change: 0 additions & 1 deletion virtio_sys/src/virtio_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ fn bindgen_test_layout_virtio_net_ctrl_hdr() {
}
pub type virtio_net_ctrl_ack = __u8;
#[repr(C, packed)]
#[derive(Debug, Default)]
pub struct virtio_net_ctrl_mac {
pub entries: __virtio32,
pub macs: __IncompleteArrayField<[__u8; 6usize]>,
Expand Down