Path: blob/main/src/virtio_gen/patches/0001-virtio_gen-remove-derive-Debug-from-packed-struct.patch
1958 views
From 67247b7abc56a11d8cae7eb354994d818fb72e93 Mon Sep 17 00:00:00 20011From: Andreea Florescu <[email protected]>2Date: Tue, 15 Jan 2019 18:30:07 +02003Subject: [PATCH] virtio_gen: remove derive Debug from packed struct45Bindgen automatically adds derive debug on virtio_net_ctrl_mac, a packed6structure. This generates a warning while building.78Manually remove the Debug derive.910Signed-off-by: Andreea Florescu <[email protected]>11---12virtio_gen/src/virtio_net.rs | 2 +-131 file changed, 1 insertion(+), 1 deletion(-)1415diff --git a/virtio_gen/src/virtio_net.rs b/virtio_gen/src/virtio_net.rs16index 0b68d09..a1c9dca 10064417--- a/virtio_gen/src/virtio_net.rs18+++ b/virtio_gen/src/virtio_net.rs19@@ -681,7 +681,7 @@ fn bindgen_test_layout_virtio_net_ctrl_hdr() {20}21pub type virtio_net_ctrl_ack = __u8;22#[repr(C, packed)]23-#[derive(Debug, Default)]24+#[derive(Default)]25pub struct virtio_net_ctrl_mac {26pub entries: __virtio32,27pub macs: __IncompleteArrayField<[__u8; 6usize]>,28--292.7.4303132