提交 cbe6ab4e 编写于 作者: E Emmanuel Grumbach 提交者: Wey-Yi Guy

iwlwifi: use sparse compliant __aligned__ attribute

Sparse prefers __aligned(sizeof(void *));
Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
上级 d0f76d68
...@@ -133,7 +133,7 @@ struct iwl_bus { ...@@ -133,7 +133,7 @@ struct iwl_bus {
/* pointer to bus specific struct */ /* pointer to bus specific struct */
/*Ensure that this pointer will always be aligned to sizeof pointer */ /*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 *));
}; };
/***************************************************** /*****************************************************
......
...@@ -347,7 +347,7 @@ struct iwl_trans { ...@@ -347,7 +347,7 @@ struct iwl_trans {
/* pointer to trans specific struct */ /* pointer to trans specific struct */
/*Ensure that this pointer will always be aligned to sizeof pointer */ /*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) static inline int iwl_trans_start_hw(struct iwl_trans *trans)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册