Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbe6ab4e authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by Wey-Yi Guy
Browse files

iwlwifi: use sparse compliant __aligned__ attribute



Sparse prefers __aligned(sizeof(void *));

Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent d0f76d68
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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
Original line number Original line Diff line number Diff line
@@ -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)