From: Himangi Saraogi Date: Wed, 12 Mar 2014 18:37:16 +0000 (+0530) Subject: staging:rtl8187se:ieee80211: Fix sparse warning of cast to restricted __le16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72dbeaf589cf35df3cf28c731cd153ae6f211ec7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging:rtl8187se:ieee80211: Fix sparse warning of cast to restricted __le16 This patch fixes the following sparse warnings: drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:496:17: warning: cast to restricted __le16 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:540:12: warning: cast to restricted __le16 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:586:12: warning: cast to restricted __le16 Signed-off-by: Himangi Saraogi Reviewed-by: Bob Copeland Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211.h b/drivers/staging/rtl8187se/ieee80211/ieee80211.h index e4c1c379de68..d1763b7b8f27 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211.h @@ -482,7 +482,7 @@ struct ieee80211_header_data { }; struct ieee80211_hdr_4addr { - u16 frame_ctl; + __le16 frame_ctl; u16 duration_id; u8 addr1[ETH_ALEN]; u8 addr2[ETH_ALEN];