2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-16 01:24:08 +08:00
linux-next/drivers/staging
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
..
android staging: android: remove space after casts 2015-01-17 16:20:20 -08:00
board staging:board: remove unnecessary function 2015-01-17 16:17:11 -08:00
clocking-wizard staging: clocking-wizard: Handle invalid clk in notifier 2015-01-17 16:06:20 -08:00
comedi Staging: comedi: fix line over 80 characters warning 2015-01-25 19:59:14 +08:00
cptm1217 cptm1217: check if interrupts are masked at probe 2015-01-17 16:05:02 -08:00
dgap staging: dgap: use gotos for handling error in dgap_remap() 2015-01-17 16:10:48 -08:00
dgnc staging: dgnc: implement proper error handling in dgnc_start() 2015-01-17 15:04:12 -08:00
emxx_udc Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
fbtft staging: fbtft: fix allyesconfig build 2015-01-25 19:59:16 +08:00
ft1000 Staging: ft1000-pcmcia: fix else close brace style 2015-01-17 15:22:31 -08:00
fwserial staging: fwserial: remove multiple blank lines 2014-11-26 13:53:25 -08:00
gdm72xx More ACPI and power management updates for 3.19-rc1 2014-12-18 20:28:33 -08:00
gdm724x staging: gdm724x: fix line limit coding style issue in gdm_lte.c 2015-01-17 14:57:43 -08:00
goldfish
gs_fpgaboot staging: gs_fpgaboot: io.c: Remove unused function 2015-01-17 15:19:52 -08:00
iio First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
line6
lustre staging: lustre: ptlrpc: fix lproc_ptlrpc static declarations 2015-01-25 19:59:16 +08:00
media staging: davinci_vpfe: fix space prohibited before semicolon warning 2015-01-17 16:22:15 -08:00
mt29f_spinand staging: mt29f_spinand: Fix typo in Kconfig 2015-01-17 16:22:15 -08:00
netlogic Staging: NetLogic: Coding style correction 2015-01-17 15:17:10 -08:00
nvec staging: nvec: specify a platform-device base id 2015-01-21 10:31:09 +08:00
octeon Staging: octeon: Fixed a typo 2015-01-17 15:00:23 -08:00
octeon-usb Staging: octeon-usb: Fixed a typo 2015-01-17 15:00:23 -08:00
olpc_dcon staging: olpc_dcon: fix sparse symbol not declared warning 2015-01-17 15:17:10 -08:00
ozwpan Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
panel staging: panel: Remove magic numbers in LCD commands 2015-01-12 06:39:33 -08:00
rtl8188eu staging: rtl8188eu: core: rtw_mlme_ext.c: Remove unused function 2015-01-17 14:10:03 -08:00
rtl8192e staging: rtl8192e: Fix duplicated conditional branch 2015-01-17 14:21:59 -08:00
rtl8192u Staging: rtl8192u: Remove check of ieee in rtl819x_BAProc.c 2015-01-17 14:21:59 -08:00
rtl8712 staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl8723au staging: rtl8723au: fix sparse warning 2015-01-17 13:59:33 -08:00
rts5208 staging: rts5208/ms.c: Code style fix (space before comma) 2015-01-17 16:07:20 -08:00
skein staging: skein: Fixing single statement macro checkpatch warning 2015-01-17 15:05:52 -08:00
slicoss Staging: slicoss: Fix long line issues in slicoss.c 2014-12-02 16:54:43 -08:00
speakup staging: speakup: Combine the consecutive string 2015-01-17 16:14:16 -08:00
ste_rmi4
unisys staging: virtpci: Remove no-op suspend/resume functions 2015-01-17 16:16:00 -08:00
vme Staging: vme: devices: Use kasprintf 2014-10-27 10:33:05 +08:00
vt6655 staging: vt6655: RFbSetPower remove unused variable byPwrdBm 2015-01-25 19:59:16 +08:00
vt6656 staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) 2015-01-25 19:59:17 +08:00
wlan-ng staging: wlan-ng: Fix comment in prism2sta.c 2015-01-17 16:10:48 -08:00
xgifb staging: xgifb: remove unnecessary check 2015-01-17 16:15:59 -08:00
Kconfig staging: fbtft: core support 2015-01-17 16:44:41 -08:00
Makefile staging: fbtft: core support 2015-01-17 16:44:41 -08:00
staging.c