Staging: rtl8192u: use __packed instead of __attribute__((packed))
PATCH 3/3 Staging: rtl8192u: use __packed instead of __attribute__((packed))
In reply to a message not in the archiveMacro __packed is defined in linux/compiler-gcc.h and is preferred over __attribute__((packed)). Issue found by checkpatch.pl
Signed-off-by Ksenija Stanojevic <[email protected]>
--- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h +4 -4
@@ -177,7 +177,7 @@ typedef struct _HT_CAPABILITY_ELE {//Antenna Selection Capabilities u8 ASCap; -} __attribute__ ((packed)) HT_CAPABILITY_ELE, *PHT_CAPABILITY_ELE; +}__packed HT_CAPABILITY_ELE , *PHT_CAPABILITY_ELE ;//------------------------------------------------------------ // The HT Information element is present in beacons
@@ -209,7 +209,7 @@ typedef struct _HT_INFORMATION_ELE { u8 Rsvd4:4;u8 BasicMSC[16 ]; -} __attribute__ ((packed)) HT_INFORMATION_ELE, *PHT_INFORMATION_ELE; +}__packed HT_INFORMATION_ELE , *PHT_INFORMATION_ELE ;// // MIMO Power Save control field.
@@ -339,7 +339,7 @@ typedef struct _RT_HIGH_THROUGHPUT {// For IOT issue. u8 IOTPeer;u32 IOTAction; -} __attribute__ ((packed)) RT_HIGH_THROUGHPUT, *PRT_HIGH_THROUGHPUT; +}__packed RT_HIGH_THROUGHPUT , *PRT_HIGH_THROUGHPUT ;//------------------------------------------------------------
@@ -393,7 +393,7 @@ typedef struct _BSS_HT {u8 bdRT2RTAggregation;u8 bdRT2RTLongSlotTime; -} __attribute__ ((packed)) BSS_HT, *PBSS_HT; +}__packed BSS_HT , *PBSS_HT ; typedef struct _MIMO_RSSI { u32 EnableAntenna;
Signature · 1 line
1.9.1