Heba Aamer
48eaa7f596
staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)
...
This patch fixes the following checkpatch.pl warning:
fix Prefer ether_addr_copy() over memcpy()
if the Ethernet addresses are __aligned(2)
Pahole showed that the 2 structs are aligned to u16
struct vnt_mic_hdr {
u8 id; /* 0 1 */
u8 tx_priority; /* 1 1 */
u8 mic_addr2[6]; /* 2 6 */
u8 ccmp_pn[6]; /* 8 6 */
__be16 payload_len; /* 14 2 */
__be16 hlen; /* 16 2 */
__le16 frame_control; /* 18 2 */
u8 addr1[6]; /* 20 6 */
u8 addr2[6]; /* 26 6 */
u8 addr3[6]; /* 32 6 */
__le16 seq_ctrl; /* 38 2 */
u8 addr4[6]; /* 40 6 */
u16 packing; /* 46 2 */
/* size: 48, cachelines: 1, members: 13 */
/* last cacheline: 48 bytes */
};
struct ieee80211_hdr {
__le16 frame_control; /* 0 2 */
__le16 duration_id; /* 2 2 */
u8 addr1[6]; /* 4 6 */
u8 addr2[6]; /* 10 6 */
u8 addr3[6]; /* 16 6 */
__le16 seq_ctrl; /* 22 2 */
u8 addr4[6]; /* 24 6 */
/* size: 30, cachelines: 1, members: 7 */
/* last cacheline: 30 bytes */
};
Signed-off-by: Heba Aamer <heba93aamer@gmail.com>
Reviewed-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-25 19:59:17 +08:00
..
2015-01-14 07:53:51 +13:00
2014-12-14 16:43:47 -08:00
2014-12-18 20:28:33 -08:00
2014-12-14 16:10:09 -08:00
2014-12-29 21:24:00 +01:00
2014-12-11 17:56:37 -08:00
2015-01-08 09:02:23 -07:00
2014-12-15 13:23:09 -05:00
2015-01-16 19:10:41 -08:00
2014-12-30 13:34:36 -06:00
2015-01-17 11:33:57 -08:00
2014-12-30 15:27:20 +01:00
2014-11-26 19:09:01 -08:00
2014-11-26 19:28:11 -08:00
2014-12-29 21:23:41 +01:00
2014-12-29 21:23:41 +01:00
2014-12-14 16:10:09 -08:00
2015-01-13 23:07:58 +05:30
2014-12-14 16:10:09 -08:00
2014-12-14 16:43:47 -08:00
2014-12-10 20:53:21 +01:00
2014-12-14 16:10:09 -08:00
2015-01-09 07:57:35 +01:00
2015-01-08 10:36:37 +10:00
2015-01-09 14:41:01 +01:00
2014-12-15 17:33:47 -08:00
2014-12-14 16:43:47 -08:00
2014-12-17 10:16:27 -08:00
2014-12-20 13:52:52 -08:00
2014-12-14 16:10:09 -08:00
2015-01-21 10:13:37 +08:00
2014-12-20 13:42:57 -08:00
2014-12-31 12:59:34 -08:00
2015-01-05 12:40:06 +01:00
2014-12-15 17:30:09 -08:00
2015-01-12 15:31:35 -05:00
2015-01-13 13:49:01 -08:00
2014-12-09 16:32:32 +02:00
2014-12-19 19:32:47 +01:00
2014-12-14 16:10:09 -08:00
2015-01-09 15:46:37 -08:00
2014-12-17 12:31:13 -05:00
2014-12-18 20:28:33 -08:00
2014-12-17 09:59:26 -08:00
2014-11-24 14:45:27 +01:00
2014-12-30 16:59:59 -08:00
2015-01-17 08:18:08 +13:00
2015-01-14 09:47:19 +01:00
2014-12-17 09:59:26 -08:00
2015-01-14 17:05:51 -05:00
2014-12-18 20:28:33 -08:00
2014-12-16 14:53:01 -08:00
2014-12-14 16:43:47 -08:00
2014-12-19 14:02:02 -08:00
2014-12-14 16:43:47 -08:00
2014-12-23 15:44:32 +05:30
2015-01-07 10:44:39 +01:00
2014-12-18 20:24:55 -08:00
2014-12-18 20:28:33 -08:00
2014-12-17 02:35:42 +01:00
2014-12-17 10:10:51 -08:00
2014-12-29 13:24:38 -08:00
2014-12-14 16:10:09 -08:00
2015-01-16 19:11:31 -08:00
2014-11-26 18:24:36 +02:00
2014-12-14 16:10:09 -08:00
2014-12-18 09:55:55 +01:00
2015-01-09 15:43:01 +01:00
2014-12-05 03:08:24 +01:00
2014-12-15 15:52:01 -08:00
2014-12-24 12:57:54 +00:00
2014-12-11 17:56:37 -08:00
2015-01-25 19:59:17 +08:00
2015-01-09 15:25:58 -08:00
2014-11-24 07:45:25 +01:00
2015-01-15 19:20:26 +13:00
2015-01-09 13:46:02 -08:00
2014-12-14 16:43:47 -08:00
2015-01-14 16:27:23 -08:00
2015-01-07 10:29:11 -07:00
2015-01-13 15:23:26 +13:00
2015-01-13 15:13:45 +02:00
2015-01-06 16:35:36 +02:00
2014-12-14 16:43:47 -08:00
2014-12-18 16:01:20 +01:00
2014-12-18 05:56:29 -08:00
2014-12-15 18:06:13 -08:00
2014-12-22 11:47:37 +02:00