From: Emmanuel Grumbach Date: Wed, 15 Feb 2012 07:25:06 +0000 (+0200) Subject: iwlwifi: use sparse compliant __aligned__ attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cbe6ab4e11603e426e01c6349cd5643f3a287ba4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iwlwifi: use sparse compliant __aligned__ attribute Sparse prefers __aligned(sizeof(void *)); Signed-off-by: Emmanuel Grumbach Signed-off-by: Wey-Yi Guy --- 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 { /* 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 *)); }; /***************************************************** 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 { /* 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)