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

staging: rtl8192u: use __packed instead of __attribute__((packed))

This patch fixes the following checkpatch warning:
WARNING: __packed is preferred over __attribute__((packed))

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xenia Ragiadakou and committed by
Greg Kroah-Hartman
889cfe2f f96f8df2

+5 -5
+2 -2
drivers/staging/rtl8192u/r819xU_HTType.h
··· 145 145 //Antenna Selection Capabilities 146 146 u8 ASCap; 147 147 148 - }__attribute__((packed)) HT_CAPABILITY_ELE, *PHT_CAPABILITY_ELE; 148 + }__packed HT_CAPABILITY_ELE, *PHT_CAPABILITY_ELE; 149 149 150 150 //------------------------------------------------------------ 151 151 // The HT Information element is present in beacons ··· 177 177 u8 Rsvd4:4; 178 178 179 179 u8 BasicMSC[16]; 180 - }__attribute__((packed)) HT_INFORMATION_ELE, *PHT_INFORMATION_ELE; 180 + }__packed HT_INFORMATION_ELE, *PHT_INFORMATION_ELE; 181 181 182 182 // 183 183 // MIMO Power Save control field.
+2 -2
drivers/staging/rtl8192u/r819xU_cmdpkt.h
··· 124 124 u16 reserve3_23; 125 125 u8 reserve3_1; 126 126 u8 rate; 127 - } __attribute__((packed)) cmpk_tx_status_t; 127 + } __packed cmpk_tx_status_t; 128 128 129 129 /* 6. Debug feedback message. */ 130 130 /* Define RX debug message */ ··· 161 161 */ 162 162 u16 ht_mcs[4][16]; 163 163 164 - } __attribute__((packed)) cmpk_tx_rahis_t; 164 + } __packed cmpk_tx_rahis_t; 165 165 166 166 typedef enum tag_command_packet_directories { 167 167 RX_TX_FEEDBACK = 0,
+1 -1
drivers/staging/rtl8192u/r819xU_phy.h
··· 23 23 u32 Para1; 24 24 u32 Para2; 25 25 u32 msDelay; 26 - } __attribute__ ((packed)) SwChnlCmd; 26 + } __packed SwChnlCmd; 27 27 28 28 extern u32 rtl819XMACPHY_Array_PG[]; 29 29 extern u32 rtl819XPHY_REG_1T2RArray[];