Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba2d3587 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

drivers/net: use __packed annotation



cleanup patch.

Use new __packed annotation in drivers/net/

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1273d976
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ struct mc32_mailbox
{
 	u16 mbox;
 	u16 data[1];
} __attribute((packed));
} __packed;

struct skb_header
{
@@ -43,7 +43,7 @@ struct skb_header
	u16 next;	/* Do not change! */
	u16 length;
	u32 data;
} __attribute((packed));
} __packed;

struct mc32_stats
{
@@ -68,7 +68,7 @@ struct mc32_stats
	u32 dataA[6];
	u16 dataB[5];
	u32 dataC[14];
} __attribute((packed));
} __packed;

#define STATUS_MASK	0x0F
#define COMPLETED	(1<<7)
+1 −1
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ struct cp_dma_stats {
	__le32			rx_ok_mcast;
	__le16			tx_abort;
	__le16			tx_underrun;
} __attribute__((packed));
} __packed;

struct cp_extra_stats {
	unsigned long		rx_frags;
+2 −2
Original line number Diff line number Diff line
@@ -436,8 +436,8 @@ struct rx_free_desc {
	__le16 buf_len;		/* Size of the receive buffer in host memory */
	u16 coalese;		/* Update consumer index to host after the
				 * reception of this frame */
	/* __attribute__ ((packed)) is required */
} __attribute__ ((packed));
	/* __packed is required */
} __packed;

/*
 * The L1 transmit packet descriptor is comprised of four 32-bit words.
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ struct mscan_regs {
		u16 time;			/* + 0x7c     0x3e */
	} tx;
	_MSCAN_RESERVED_(32, 2);		/* + 0x7e          */
} __attribute__ ((packed));
} __packed;

#undef _MSCAN_RESERVED_
#define MSCAN_REGION 	sizeof(struct mscan)
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ struct cpc_can_err_counter {
};

/* Main message type used between library and application */
struct __attribute__ ((packed)) ems_cpc_msg {
struct __packed ems_cpc_msg {
	u8 type;	/* type of message */
	u8 length;	/* length of data within union 'msg' */
	u8 msgid;	/* confirmation handle */
Loading