History

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.

Michael S. Tsirkin committed 5 years ago

Commit 7d0003d1 parent eff5cdd1 file · +1 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_gpio.h+1−1
@@ -37,7 +37,7 @@ struct virtio_gpio_config { · 36 unmodified lines
37 __le16 ngpio;37 __le16 ngpio;
38 __u8 padding[2];38 __u8 padding[2];
39 __le32 gpio_names_size;39 __le32 gpio_names_size;
40} __packed;40};
41 41
42/* Virtio GPIO Request / Response */42/* Virtio GPIO Request / Response */
43struct virtio_gpio_request {43struct virtio_gpio_request {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t