Skip to content

Commit 816aec0

Browse files
MrVanShawn Guo
authored andcommitted
soc: imx: imx8m-blk-ctrl: reordering the fields
The clang-analyzer reports: "Excessive padding in 'struct imx8m_blk_ctrl_domain_data' (12 padding bytes, where 4 is optimal). Optimal fields order: name, clk_names, path_names, gpc_name, num_clks, num_paths, rst_mask, clk_mask, mipi_phy_rst_mask, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct imx8m_blk_ctrl_domain_data {" So reordering the fields. Reported-by: kernel test robot <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 8191455 commit 816aec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soc/imx/imx8m-blk-ctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ struct imx8m_blk_ctrl {
3838
struct imx8m_blk_ctrl_domain_data {
3939
const char *name;
4040
const char * const *clk_names;
41-
int num_clks;
4241
const char * const *path_names;
43-
int num_paths;
4442
const char *gpc_name;
43+
int num_clks;
44+
int num_paths;
4545
u32 rst_mask;
4646
u32 clk_mask;
4747

0 commit comments

Comments
 (0)