staging: rtl8192u: use __packed instead of __attribute__((packed))
authorXenia Ragiadakou <burzalodowa@gmail.com>
Thu, 10 Oct 2013 07:43:55 +0000 (10:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:42:54 +0000 (15:42 -0700)
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>
drivers/staging/rtl8192u/r819xU_HTType.h
drivers/staging/rtl8192u/r819xU_cmdpkt.h
drivers/staging/rtl8192u/r819xU_phy.h

index 19a7bdd1973ad3bdc02c61657cb891362141dbec..6ec31f2d9a7e0fd853e4a21c68d7ded3fd7f6268 100644 (file)
@@ -145,7 +145,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
@@ -177,7 +177,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.
index 6f213819a17fc310ab04053a390cca4f62e09c70..52cd437ef7bb52d058c652ac9594de1e9666b20c 100644 (file)
@@ -124,7 +124,7 @@ typedef struct tag_tx_stats_feedback {
        u16     reserve3_23;
        u8      reserve3_1;
        u8      rate;
-} __attribute__((packed)) cmpk_tx_status_t;
+} __packed cmpk_tx_status_t;
 
 /* 6. Debug feedback message. */
 /* Define RX debug message  */
@@ -161,7 +161,7 @@ typedef struct tag_tx_rate_history {
         */
        u16     ht_mcs[4][16];
 
-} __attribute__((packed)) cmpk_tx_rahis_t;
+} __packed cmpk_tx_rahis_t;
 
 typedef enum tag_command_packet_directories {
        RX_TX_FEEDBACK                  = 0,
index f3c352a10fe06965a5281e0c12268fea5c172621..66cbe3f9cafd9116e42ea7a47be0fc16637288f0 100644 (file)
@@ -23,7 +23,7 @@ typedef struct _SwChnlCmd {
        u32             Para1;
        u32             Para2;
        u32             msDelay;
-} __attribute__ ((packed)) SwChnlCmd;
+} __packed SwChnlCmd;
 
 extern u32 rtl819XMACPHY_Array_PG[];
 extern u32 rtl819XPHY_REG_1T2RArray[];