Skip to content

Commit 7d0003d

Browse files
mstsirkinbrgl
authored andcommitted
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent eff5cdd commit 7d0003d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/virtio_gpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct virtio_gpio_config {
3737
__le16 ngpio;
3838
__u8 padding[2];
3939
__le32 gpio_names_size;
40-
} __packed;
40+
};
4141

4242
/* Virtio GPIO Request / Response */
4343
struct virtio_gpio_request {

0 commit comments

Comments
 (0)