drivers/net: use __packed annotation
cleanup patch. Use new __packed annotation in drivers/net/ Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1273d97674
commit
ba2d358791
@ -64,13 +64,13 @@ struct nc_header { // packed:
|
||||
// all else is optional, and must start with:
|
||||
// __le16 vendorId; // from usb-if
|
||||
// __le16 productId;
|
||||
} __attribute__((__packed__));
|
||||
} __packed;
|
||||
|
||||
#define PAD_BYTE ((unsigned char)0xAC)
|
||||
|
||||
struct nc_trailer {
|
||||
__le16 packet_id;
|
||||
} __attribute__((__packed__));
|
||||
} __packed;
|
||||
|
||||
// packets may use FLAG_FRAMING_NC and optional pad
|
||||
#define FRAMED_SIZE(mtu) (sizeof (struct nc_header) \
|
||||
|
Reference in New Issue
Block a user