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
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 {

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