diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2021-11-01 12:11:25 +0300 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2021-11-04 18:36:54 +0300 |
commit | 7d0003da6297eb128f3490e396e6fc6df71557cd (patch) | |
tree | 7459a934b6cd006b9e55cd1854d5df755030df49 /include/uapi/linux | |
parent | eff5cdd745a68863a73095b0b4d62d15e0d9d902 (diff) | |
download | linux-7d0003da6297eb128f3490e396e6fc6df71557cd.tar.xz |
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>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/virtio_gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_gpio.h b/include/uapi/linux/virtio_gpio.h index d04af9c5f0de..d4b29d9a39dd 100644 --- a/include/uapi/linux/virtio_gpio.h +++ b/include/uapi/linux/virtio_gpio.h @@ -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 { |