linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [soc:imx/drivers 7/7] drivers/soc/imx/imx8m-blk-ctrl.c:536:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data'
@ 2021-12-21  2:43 kernel test robot
  2021-12-21  6:52 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-12-21  2:43 UTC (permalink / raw)
  To: Adam Ford; +Cc: llvm, kbuild-all, linux-arm-kernel, arm, Shawn Guo, Lucas Stach

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git imx/drivers
head:   7f511d514e8c34b6dd0c17b5496e48b2a6a2626c
commit: 7f511d514e8c34b6dd0c17b5496e48b2a6a2626c [7/7] soc: imx: imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl
config: hexagon-randconfig-r045-20211220 (https://download.01.org/0day-ci/archive/20211221/202112211020.yQtfoIrI-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 555eacf75f21cd1dfc6363d73ad187b730349543)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?id=7f511d514e8c34b6dd0c17b5496e48b2a6a2626c
        git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
        git fetch --no-tags soc imx/drivers
        git checkout 7f511d514e8c34b6dd0c17b5496e48b2a6a2626c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/soc/imx/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/soc/imx/imx8m-blk-ctrl.c:536:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data'
                   .mipi_phy_rst_mask = BIT(17),
                    ^
   drivers/soc/imx/imx8m-blk-ctrl.c:545:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data'
                   .mipi_phy_rst_mask = BIT(16),
                    ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:570:17: error: invalid application of 'sizeof' to an incomplete type 'const struct imx8m_blk_ctrl_domain_data[]'
           .num_domains = ARRAY_SIZE(imx8mn_disp_blk_ctl_domain_data),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:46:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   3 errors generated.


vim +536 drivers/soc/imx/imx8m-blk-ctrl.c

   527	
   528	static const struct imx8m_blk_ctrl_domain_data imx8mn_disp_blk_ctl_domain_data[] = {
   529		[IMX8MN_DISPBLK_PD_MIPI_DSI] = {
   530			.name = "dispblk-mipi-dsi",
   531			.clk_names = (const char *[]){ "dsi-pclk", "dsi-ref", },
   532			.num_clks = 2,
   533			.gpc_name = "mipi-dsi",
   534			.rst_mask = BIT(0) | BIT(1),
   535			.clk_mask = BIT(0) | BIT(1),
 > 536			.mipi_phy_rst_mask = BIT(17),
   537		},
   538		[IMX8MN_DISPBLK_PD_MIPI_CSI] = {
   539			.name = "dispblk-mipi-csi",
   540			.clk_names = (const char *[]){ "csi-aclk", "csi-pclk" },
   541			.num_clks = 2,
   542			.gpc_name = "mipi-csi",
   543			.rst_mask = BIT(2) | BIT(3),
   544			.clk_mask = BIT(2) | BIT(3),
   545			.mipi_phy_rst_mask = BIT(16),
   546		},
   547		[IMX8MN_DISPBLK_PD_LCDIF] = {
   548			.name = "dispblk-lcdif",
   549			.clk_names = (const char *[]){ "lcdif-axi", "lcdif-apb", "lcdif-pix", },
   550			.num_clks = 3,
   551			.gpc_name = "lcdif",
   552			.rst_mask = BIT(4) | BIT(5),
   553			.clk_mask = BIT(4) | BIT(5),
   554		},
   555		[IMX8MN_DISPBLK_PD_ISI] = {
   556			.name = "dispblk-isi",
   557			.clk_names = (const char *[]){ "disp_axi", "disp_apb", "disp_axi_root",
   558							"disp_apb_root"},
   559			.num_clks = 4,
   560			.gpc_name = "isi",
   561			.rst_mask = BIT(6) | BIT(7),
   562			.clk_mask = BIT(6) | BIT(7),
   563		},
   564	};
   565	
   566	static const struct imx8m_blk_ctrl_data imx8mn_disp_blk_ctl_dev_data = {
   567		.max_reg = 0x84,
   568		.power_notifier_fn = imx8mn_disp_power_notifier,
   569		.domains = imx8mn_disp_blk_ctl_domain_data,
 > 570		.num_domains = ARRAY_SIZE(imx8mn_disp_blk_ctl_domain_data),
   571	};
   572	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [soc:imx/drivers 7/7] drivers/soc/imx/imx8m-blk-ctrl.c:536:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data'
  2021-12-21  2:43 [soc:imx/drivers 7/7] drivers/soc/imx/imx8m-blk-ctrl.c:536:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data' kernel test robot
@ 2021-12-21  6:52 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2021-12-21  6:52 UTC (permalink / raw)
  To: kernel test robot
  Cc: Adam Ford, llvm, kbuild-all, linux-arm-kernel, arm, Lucas Stach

On Tue, Dec 21, 2021 at 10:43:48AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git imx/drivers
> head:   7f511d514e8c34b6dd0c17b5496e48b2a6a2626c
> commit: 7f511d514e8c34b6dd0c17b5496e48b2a6a2626c [7/7] soc: imx: imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl
> config: hexagon-randconfig-r045-20211220 (https://download.01.org/0day-ci/archive/20211221/202112211020.yQtfoIrI-lkp@intel.com/config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 555eacf75f21cd1dfc6363d73ad187b730349543)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?id=7f511d514e8c34b6dd0c17b5496e48b2a6a2626c
>         git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
>         git fetch --no-tags soc imx/drivers
>         git checkout 7f511d514e8c34b6dd0c17b5496e48b2a6a2626c
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/soc/imx/
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
> >> drivers/soc/imx/imx8m-blk-ctrl.c:536:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data'
>                    .mipi_phy_rst_mask = BIT(17),
>                     ^

Thanks for reporting!

Arnd,

I overlooked that imx/drivers branch (commit 7f511d514e8c "soc: imx:
imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl") has a dependency on commit
042b67799e29 ("soc: imx: imx8m-blk-ctrl: Fix imx8mm mipi reset"), which
has landed on Linus' tree as part of imx-fixes-5.16-2.  That said, this
is imx/drivers branch only issue.  linux-next and mainline should be
fine.

Sorry for the breakage.  I will be careful in the future.

Shawn

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-21  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21  2:43 [soc:imx/drivers 7/7] drivers/soc/imx/imx8m-blk-ctrl.c:536:4: error: field designator 'mipi_phy_rst_mask' does not refer to any field in type 'const struct imx8m_blk_ctrl_domain_data' kernel test robot
2021-12-21  6:52 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).