From: Himangi Saraogi Date: Wed, 5 Mar 2014 15:40:52 +0000 (+0530) Subject: staging:wlan-ng:Fix sparse warning cast to restricted __le16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8cbe56e09c49c536300da86893d2fe16ff1390f0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging:wlan-ng:Fix sparse warning cast to restricted __le16 This patch fixes the following sparse warnings: drivers/staging/wlan-ng/hfa384x_usb.c:3582:14: warning: cast to restricted __le16 drivers/staging/wlan-ng/hfa384x_usb.c:3584:19: warning: cast to restricted __le16 by changing the annotations in the struct declaration. Signed-off-by: Himangi Saraogi Acked-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index 333a2f693e49..1f2c78cc0086 100644 --- a/drivers/staging/wlan-ng/hfa384x.h +++ b/drivers/staging/wlan-ng/hfa384x.h @@ -531,14 +531,14 @@ typedef struct hfa384x_rx_frame { u16 reserved2; /*-- 802.11 Header Information (802.11 byte order) --*/ - u16 frame_control; + __le16 frame_control; u16 duration_id; u8 address1[6]; u8 address2[6]; u8 address3[6]; u16 sequence_control; u8 address4[6]; - u16 data_len; /* hfa384x (little endian) format */ + __le16 data_len; /* hfa384x (little endian) format */ /*-- 802.3 Header Information --*/ u8 dest_addr[6];