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: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
This commit is contained in:
Michael S. Tsirkin 2021-11-01 05:11:25 -04:00 committed by Bartosz Golaszewski
parent eff5cdd745
commit 7d0003da62

View File

@ -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 {