virtio_gpio: drop packed attribute
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:11:25 +0000 (05:11 -0400)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 4 Nov 2021 15:36:54 +0000 (16:36 +0100)
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>
include/uapi/linux/virtio_gpio.h

index d04af9c5f0de8c0f77d45a26deb217fdcdddee98..d4b29d9a39dd49d7715b496185bac7f376a65245 100644 (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 {