Skip to content

Commit

Permalink
virtio_gpio: drop packed attribute
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mstsirkin authored and brgl committed Nov 4, 2021
1 parent eff5cdd commit 7d0003d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/virtio_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d0003d

Please sign in to comment.