[shawnguo:imx/drivers 10/12] drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'

kernel test robot lkp at intel.com
Fri Oct 15 01:10:51 PDT 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git imx/drivers
head:   72949f76565c9ea9f4231c977774a31d4713c386
commit: 2684ac05a8c4d2d5c49e6c11eb6206b30a284813 [10/12] soc: imx: add i.MX8M blk-ctrl driver
config: hexagon-randconfig-r045-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
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/shawnguo/linux.git/commit/?id=2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        git remote add shawnguo https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
        git fetch --no-tags shawnguo imx/drivers
        git checkout 2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        # save the attached .config 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

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

All errors (new ones prefixed by >>):

>> drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
           [IMX8MM_VPUBLK_PD_G1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:409:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G2'
           [IMX8MM_VPUBLK_PD_G2] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:417:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_H1'
           [IMX8MM_VPUBLK_PD_H1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:431:17: error: invalid application of 'sizeof' to an incomplete type 'const struct imx8m_blk_ctrl_domain_data []'
           .num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   4 errors generated.


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

   399	
   400	static const struct imx8m_blk_ctrl_domain_data imx8mm_vpu_blk_ctl_domain_data[] = {
 > 401		[IMX8MM_VPUBLK_PD_G1] = {
   402			.name = "vpublk-g1",
   403			.clk_names = (const char *[]){ "g1", },
   404			.num_clks = 1,
   405			.gpc_name = "g1",
   406			.rst_mask = BIT(1),
   407			.clk_mask = BIT(1),
   408		},
 > 409		[IMX8MM_VPUBLK_PD_G2] = {
   410			.name = "vpublk-g2",
   411			.clk_names = (const char *[]){ "g2", },
   412			.num_clks = 1,
   413			.gpc_name = "g2",
   414			.rst_mask = BIT(0),
   415			.clk_mask = BIT(0),
   416		},
 > 417		[IMX8MM_VPUBLK_PD_H1] = {
   418			.name = "vpublk-h1",
   419			.clk_names = (const char *[]){ "h1", },
   420			.num_clks = 1,
   421			.gpc_name = "h1",
   422			.rst_mask = BIT(2),
   423			.clk_mask = BIT(2),
   424		},
   425	};
   426	
   427	static const struct imx8m_blk_ctrl_data imx8mm_vpu_blk_ctl_dev_data = {
   428		.max_reg = 0x18,
   429		.power_notifier_fn = imx8mm_vpu_power_notifier,
   430		.domains = imx8mm_vpu_blk_ctl_domain_data,
 > 431		.num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
   432	};
   433	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27738 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211015/d0d8c111/attachment-0001.gz>


More information about the linux-arm-kernel mailing list