浏览代码

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>
Emmanuel Grumbach 13 年之前
父节点
当前提交
cbe6ab4e11
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/net/wireless/iwlwifi/iwl-bus.h
  2. 1 1
      drivers/net/wireless/iwlwifi/iwl-trans.h

+ 1 - 1
drivers/net/wireless/iwlwifi/iwl-bus.h

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

+ 1 - 1
drivers/net/wireless/iwlwifi/iwl-trans.h

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