[shawnguo:imx/drivers 11/12] drivers/soc/imx/imx8m-blk-ctrl.c:460:3: error: use of undeclared identifier 'IMX8MM_DISPBLK_PD_CSI_BRIDGE'
From: kernel test robot <hidden>
Date: 2021-10-15 09:21:28
Also in:
llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git imx/drivers head: 72949f76565c9ea9f4231c977774a31d4713c386 commit: 926e57c065dfcf5a824b206760330f32e786dd8c [11/12] soc: imx: imx8m-blk-ctrl: add DISP blk-ctrl 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=926e57c065dfcf5a824b206760330f32e786dd8c 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 926e57c065dfcf5a824b206760330f32e786dd8c # 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 <redacted> 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)) ^~~~~
quoted
drivers/soc/imx/imx8m-blk-ctrl.c:460:3: error: use of undeclared identifier 'IMX8MM_DISPBLK_PD_CSI_BRIDGE'
[IMX8MM_DISPBLK_PD_CSI_BRIDGE] = {
^quoted
drivers/soc/imx/imx8m-blk-ctrl.c:469:3: error: use of undeclared identifier 'IMX8MM_DISPBLK_PD_LCDIF'
[IMX8MM_DISPBLK_PD_LCDIF] = {
^quoted
drivers/soc/imx/imx8m-blk-ctrl.c:476:3: error: use of undeclared identifier 'IMX8MM_DISPBLK_PD_MIPI_DSI'
[IMX8MM_DISPBLK_PD_MIPI_DSI] = {
^quoted
drivers/soc/imx/imx8m-blk-ctrl.c:484:3: error: use of undeclared identifier 'IMX8MM_DISPBLK_PD_MIPI_CSI'
[IMX8MM_DISPBLK_PD_MIPI_CSI] = {
^
drivers/soc/imx/imx8m-blk-ctrl.c:498:17: error: invalid application of 'sizeof' to an incomplete type 'const struct imx8m_blk_ctrl_domain_data []'
.num_domains = ARRAY_SIZE(imx8mm_disp_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))
^~~~~
9 errors generated.
vim +/IMX8MM_DISPBLK_PD_CSI_BRIDGE +460 drivers/soc/imx/imx8m-blk-ctrl.c
458
459 static const struct imx8m_blk_ctrl_domain_data imx8mm_disp_blk_ctl_domain_data[] = {
> 460 [IMX8MM_DISPBLK_PD_CSI_BRIDGE] = {
461 .name = "dispblk-csi-bridge",
462 .clk_names = (const char *[]){ "csi-bridge-axi", "csi-bridge-apb",
463 "csi-bridge-core", },
464 .num_clks = 3,
465 .gpc_name = "csi-bridge",
466 .rst_mask = BIT(0) | BIT(1) | BIT(2),
467 .clk_mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5),
468 },
> 469 [IMX8MM_DISPBLK_PD_LCDIF] = {
470 .name = "dispblk-lcdif",
471 .clk_names = (const char *[]){ "lcdif-axi", "lcdif-apb", "lcdif-pix", },
472 .num_clks = 3,
473 .gpc_name = "lcdif",
474 .clk_mask = BIT(6) | BIT(7),
475 },
> 476 [IMX8MM_DISPBLK_PD_MIPI_DSI] = {
477 .name = "dispblk-mipi-dsi",
478 .clk_names = (const char *[]){ "dsi-pclk", "dsi-ref", },
479 .num_clks = 2,
480 .gpc_name = "mipi-dsi",
481 .rst_mask = BIT(5),
482 .clk_mask = BIT(8) | BIT(9),
483 },
> 484 [IMX8MM_DISPBLK_PD_MIPI_CSI] = {
485 .name = "dispblk-mipi-csi",
486 .clk_names = (const char *[]){ "csi-aclk", "csi-pclk" },
487 .num_clks = 2,
488 .gpc_name = "mipi-csi",
489 .rst_mask = BIT(3) | BIT(4),
490 .clk_mask = BIT(10) | BIT(11),
491 },
492 };
493
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 27738 bytes
- (unnamed) [text/plain] 176 bytes · preview