All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] Staging: rtl8192u: use __packed instead of __attribute__((packed))
       [not found] <cover.1425116974.git.ksenija.stanojevic@gmail.com>
@ 2015-02-28  9:51 ` Ksenija Stanojevic
  0 siblings, 0 replies; only message in thread
From: Ksenija Stanojevic @ 2015-02-28  9:51 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Ksenija Stanojevic

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

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
---
 drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h b/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h
index 094dd2e..0f95fc9 100644
--- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h
+++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h
@@ -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;
-- 
1.9.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-28  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cover.1425116974.git.ksenija.stanojevic@gmail.com>
2015-02-28  9:51 ` [PATCH 3/3] Staging: rtl8192u: use __packed instead of __attribute__((packed)) Ksenija Stanojevic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.