iwlwifi: use sparse compliant __aligned__ attribute
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 15 Feb 2012 07:25:06 +0000 (09:25 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 27 Feb 2012 21:26:09 +0000 (13:26 -0800)
Sparse prefers __aligned(sizeof(void *));

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-bus.h
drivers/net/wireless/iwlwifi/iwl-trans.h

index 30965e0e8ab403a2ed60f83122c62c5144d07b81..7d56cbc4a0b8009f9b7b261fd92bb06a5eac6c22 100644 (file)
@@ -133,7 +133,7 @@ struct iwl_bus {
 
        /* pointer to bus specific struct */
        /*Ensure that this pointer will always be aligned to sizeof pointer */
-       char bus_specific[0] __attribute__((__aligned__(sizeof(void *))));
+       char bus_specific[0] __aligned(sizeof(void *));
 };
 
 /*****************************************************
index cc7a3cfb5f24386aa86ef53097e1364db4311d2b..f423286053562256b61f0a764911d4f53b18f4c3 100644 (file)
@@ -347,7 +347,7 @@ struct iwl_trans {
 
        /* pointer to trans specific struct */
        /*Ensure that this pointer will always be aligned to sizeof pointer */
-       char trans_specific[0] __attribute__((__aligned__(sizeof(void *))));
+       char trans_specific[0] __aligned(sizeof(void *));
 };
 
 static inline int iwl_trans_start_hw(struct iwl_trans *trans)