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>
This commit is contained in:
Emmanuel Grumbach 2012-02-15 09:25:06 +02:00 committed by Wey-Yi Guy
parent d0f76d6869
commit cbe6ab4e11
2 changed files with 2 additions and 2 deletions

View 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 *));
};
/*****************************************************

View 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)