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:
@@ -273,7 +273,7 @@ struct OboeSlot
|
||||
__u8 control; /*Slot control/status see below */
|
||||
__u32 address; /*Slot buffer address */
|
||||
}
|
||||
__attribute__ ((packed));
|
||||
__packed;
|
||||
|
||||
#define OBOE_NTASKS OBOE_TXRING_OFFSET_IN_SLOTS
|
||||
|
||||
|
@@ -125,7 +125,7 @@ struct irda_class_desc {
|
||||
__u8 bmAdditionalBOFs;
|
||||
__u8 bIrdaRateSniff;
|
||||
__u8 bMaxUnicastList;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
/* class specific interface request to get the IrDA-USB class descriptor
|
||||
* (6.2.5, USB-IrDA class spec 1.0) */
|
||||
|
@@ -154,7 +154,7 @@ struct ks959_speedparams {
|
||||
__le32 baudrate; /* baud rate, little endian */
|
||||
__u8 flags;
|
||||
__u8 reserved[3];
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
#define KS_DATA_5_BITS 0x00
|
||||
#define KS_DATA_6_BITS 0x01
|
||||
|
@@ -117,7 +117,7 @@ struct ksdazzle_speedparams {
|
||||
__le32 baudrate; /* baud rate, little endian */
|
||||
__u8 flags;
|
||||
__u8 reserved[3];
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
#define KS_DATA_5_BITS 0x00
|
||||
#define KS_DATA_6_BITS 0x01
|
||||
|
@@ -544,9 +544,9 @@ struct ring_descr_hw {
|
||||
struct {
|
||||
u8 addr_res[3];
|
||||
volatile u8 status; /* descriptor status */
|
||||
} __attribute__((packed)) rd_s;
|
||||
} __attribute((packed)) rd_u;
|
||||
} __attribute__ ((packed));
|
||||
} __packed rd_s;
|
||||
} __packed rd_u;
|
||||
} __packed;
|
||||
|
||||
#define rd_addr rd_u.addr
|
||||
#define rd_status rd_u.rd_s.status
|
||||
|
Reference in New Issue
Block a user