diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-02-15 02:25:06 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-02-27 16:26:09 -0500 |
commit | cbe6ab4e11603e426e01c6349cd5643f3a287ba4 (patch) | |
tree | ad2f1c8362a63955a79a11e4996ff316df76d098 /drivers/net | |
parent | d0f76d6869adad1f3757d102af47508be0642949 (diff) |
iwlwifi: use sparse compliant __aligned__ attribute
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-bus.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-bus.h b/drivers/net/wireless/iwlwifi/iwl-bus.h index 30965e0e8ab4..7d56cbc4a0b8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-bus.h +++ b/drivers/net/wireless/iwlwifi/iwl-bus.h | |||
@@ -133,7 +133,7 @@ struct iwl_bus { | |||
133 | 133 | ||
134 | /* pointer to bus specific struct */ | 134 | /* pointer to bus specific struct */ |
135 | /*Ensure that this pointer will always be aligned to sizeof pointer */ | 135 | /*Ensure that this pointer will always be aligned to sizeof pointer */ |
136 | char bus_specific[0] __attribute__((__aligned__(sizeof(void *)))); | 136 | char bus_specific[0] __aligned(sizeof(void *)); |
137 | }; | 137 | }; |
138 | 138 | ||
139 | /***************************************************** | 139 | /***************************************************** |
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h index cc7a3cfb5f24..f42328605356 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.h +++ b/drivers/net/wireless/iwlwifi/iwl-trans.h | |||
@@ -347,7 +347,7 @@ struct iwl_trans { | |||
347 | 347 | ||
348 | /* pointer to trans specific struct */ | 348 | /* pointer to trans specific struct */ |
349 | /*Ensure that this pointer will always be aligned to sizeof pointer */ | 349 | /*Ensure that this pointer will always be aligned to sizeof pointer */ |
350 | char trans_specific[0] __attribute__((__aligned__(sizeof(void *)))); | 350 | char trans_specific[0] __aligned(sizeof(void *)); |
351 | }; | 351 | }; |
352 | 352 | ||
353 | static inline int iwl_trans_start_hw(struct iwl_trans *trans) | 353 | static inline int iwl_trans_start_hw(struct iwl_trans *trans) |