Skip to content

Commit 97bb34a

Browse files
dianpopaacatangiu
authored andcommitted
virtio_sys: add patches directory
This will be used for future updates of virtio_sys auto bindgen'ed files.It should contain all the patches that need to be applied over any commit that regenerates any of the virtio_sys files. Signed-off-by: Diana Popa <[email protected]>
1 parent 1759ff9 commit 97bb34a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From ad2d80366b046fcfdeb9e666d45ae2c07879894e Mon Sep 17 00:00:00 2001
2+
From: Diana Popa <[email protected]>
3+
Date: Mon, 30 Apr 2018 13:03:20 +0300
4+
Subject: [PATCH] virtio_sys: removing warning on packed struct...
5+
6+
containing an unaligned field.
7+
8+
Signed-off-by: Diana Popa <[email protected]>
9+
---
10+
virtio_sys/src/virtio_net.rs | 1 -
11+
1 file changed, 1 deletion(-)
12+
13+
diff --git a/virtio_sys/src/virtio_net.rs b/virtio_sys/src/virtio_net.rs
14+
index a75a216..7e1f795 100644
15+
--- a/virtio_sys/src/virtio_net.rs
16+
+++ b/virtio_sys/src/virtio_net.rs
17+
@@ -599,7 +599,6 @@ fn bindgen_test_layout_virtio_net_ctrl_hdr() {
18+
}
19+
pub type virtio_net_ctrl_ack = __u8;
20+
#[repr(C, packed)]
21+
-#[derive(Debug, Default)]
22+
pub struct virtio_net_ctrl_mac {
23+
pub entries: __virtio32,
24+
pub macs: __IncompleteArrayField<[__u8; 6usize]>,
25+
--
26+
2.7.4
27+

0 commit comments

Comments
 (0)