Skip to contentSkip to conversation

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

PATCH In review Ksenija Stanojevic 1 participant 1 message Feb 28, 2015 1 message not in the archive Staging

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 3/3 Staging: rtl8192u: use __packed instead of __attribute__((packed))

Macro __packed is defined in linux/compiler-gcc.h and is preferred over __attribute__((packed)). Issue found by checkpatch.pl

---
 drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h +4 -4
index 094dd2e..0f95fc9 100644
@@ -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