]> Git Repo - linux.git/commitdiff
virtio_gpio: drop packed attribute
authorMichael S. Tsirkin <[email protected]>
Mon, 1 Nov 2021 09:11:25 +0000 (05:11 -0400)
committerBartosz Golaszewski <[email protected]>
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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
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 {
This page took 0.055269 seconds and 4 git commands to generate.