Skip to content

Commit

Permalink
iwlwifi: use sparse compliant __aligned__ attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emmanuel Grumbach authored and Wey-Yi Guy committed Feb 27, 2012
1 parent d0f76d6 commit cbe6ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *));
};

/*****************************************************
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-trans.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cbe6ab4

Please sign in to comment.