Commit 7d0003da authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Bartosz Golaszewski
Browse files

virtio_gpio: drop packed attribute



Declaring the struct packed here is mostly harmless,
but gives a bad example for people to copy.
As the struct is packed and aligned manually,
let's just drop the attribute.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent eff5cdd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ struct virtio_gpio_config {
	__le16 ngpio;
	__u8 padding[2];
	__le32 gpio_names_size;
} __packed;
};

/* Virtio GPIO Request / Response */
struct virtio_gpio_request {