Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: changed struct members to __le32

Fixed sparse warning "cast to restricted __le32".
struct recv_stat and struct phy_stat have always little endian members.

Signed-off-by: Jannik Becher <becher.jannik@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jannik Becher and committed by
Greg Kroah-Hartman
3e588e3a 62730c95

+14 -14
+14 -14
drivers/staging/rtl8712/rtl8712_recv.h
··· 50 50 #define REORDER_WAIT_TIME 30 /* (ms)*/ 51 51 52 52 struct recv_stat { 53 - unsigned int rxdw0; 54 - unsigned int rxdw1; 55 - unsigned int rxdw2; 56 - unsigned int rxdw3; 57 - unsigned int rxdw4; 58 - unsigned int rxdw5; 53 + __le32 rxdw0; 54 + __le32 rxdw1; 55 + __le32 rxdw2; 56 + __le32 rxdw3; 57 + __le32 rxdw4; 58 + __le32 rxdw5; 59 59 }; 60 60 61 61 struct phy_cck_rx_status { ··· 69 69 }; 70 70 71 71 struct phy_stat { 72 - unsigned int phydw0; 73 - unsigned int phydw1; 74 - unsigned int phydw2; 75 - unsigned int phydw3; 76 - unsigned int phydw4; 77 - unsigned int phydw5; 78 - unsigned int phydw6; 79 - unsigned int phydw7; 72 + __le32 phydw0; 73 + __le32 phydw1; 74 + __le32 phydw2; 75 + __le32 phydw3; 76 + __le32 phydw4; 77 + __le32 phydw5; 78 + __le32 phydw6; 79 + __le32 phydw7; 80 80 }; 81 81 #define PHY_STAT_GAIN_TRSW_SHT 0 82 82 #define PHY_STAT_PWDB_ALL_SHT 4