soc: imx: imx8m-blk-ctrl: reordering the fields
authorPeng Fan <peng.fan@nxp.com>
Mon, 13 Mar 2023 00:49:03 +0000 (08:49 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Mar 2023 01:52:41 +0000 (09:52 +0800)
commit816aec03a043af6d0234c3e770bead2c772ef4eb
tree88486e699111468c50c12bff88c1aa7238270494
parent8191455c38dd009f15e2fa9ce6c2e3cd337918a0
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 <lkp@intel.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/imx8m-blk-ctrl.c