:::::: :::::: Manual check reason: "low confidence bisect report" :::::: Manual check reason: "low confidence static check first_new_problem: drivers/mfd/vexpress-sysreg.c:64:51: error: initializer element is not constant" :::::: BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev In-Reply-To: <20221109155618.42276-2-andriy.shevchenko@linux.intel.com> References: <20221109155618.42276-2-andriy.shevchenko@linux.intel.com> TO: Andy Shevchenko Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.1-rc6] [cannot apply to next-20221121] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/resource-Replace-printk-KERN_WARNING-by-pr_warn-printk-by-pr_info/20221109-235627 patch link: https://lore.kernel.org/r/20221109155618.42276-2-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v2 2/2] resource: Convert DEFINE_RES_NAMED() to be compound literal :::::: branch date: 12 days ago :::::: commit date: 12 days ago config: arm-randconfig-c002-20221120 compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0 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://github.com/intel-lab-lkp/linux/commit/0cfdea98d796194df5e0aa96ad24355b682e2beb git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andy-Shevchenko/resource-Replace-printk-KERN_WARNING-by-pr_warn-printk-by-pr_info/20221109-235627 git checkout 0cfdea98d796194df5e0aa96ad24355b682e2beb # save the config file COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/mfd/vexpress-sysreg.c:64:51: error: initializer element is not constant 64 | .resources = (struct resource []) { | ^ drivers/mfd/vexpress-sysreg.c:64:51: note: (near initialization for 'vexpress_sysreg_cells[0]') drivers/mfd/vexpress-sysreg.c:73:51: error: initializer element is not constant 73 | .resources = (struct resource []) { | ^ drivers/mfd/vexpress-sysreg.c:73:51: note: (near initialization for 'vexpress_sysreg_cells[1]') drivers/mfd/vexpress-sysreg.c:82:51: error: initializer element is not constant 82 | .resources = (struct resource []) { | ^ drivers/mfd/vexpress-sysreg.c:82:51: note: (near initialization for 'vexpress_sysreg_cells[2]') drivers/mfd/vexpress-sysreg.c:90:51: error: initializer element is not constant 90 | .resources = (struct resource []) { | ^ drivers/mfd/vexpress-sysreg.c:90:51: note: (near initialization for 'vexpress_sysreg_cells[3]') vim +64 drivers/mfd/vexpress-sysreg.c 8ea402f5646e6e Pawel Moll 2013-01-30 58 974cc7b93441a0 Pawel Moll 2014-04-23 59 static struct mfd_cell vexpress_sysreg_cells[] = { 88e0abcd7a8171 Pawel Moll 2012-09-18 60 { 974cc7b93441a0 Pawel Moll 2014-04-23 61 .name = "basic-mmio-gpio", 974cc7b93441a0 Pawel Moll 2014-04-23 62 .of_compatible = "arm,vexpress-sysreg,sys_led", 974cc7b93441a0 Pawel Moll 2014-04-23 63 .num_resources = 1, 974cc7b93441a0 Pawel Moll 2014-04-23 @64 .resources = (struct resource []) { 974cc7b93441a0 Pawel Moll 2014-04-23 65 DEFINE_RES_MEM_NAMED(SYS_LED, 0x4, "dat"), 974cc7b93441a0 Pawel Moll 2014-04-23 66 }, 974cc7b93441a0 Pawel Moll 2014-04-23 67 .platform_data = &vexpress_sysreg_sys_led_pdata, 974cc7b93441a0 Pawel Moll 2014-04-23 68 .pdata_size = sizeof(vexpress_sysreg_sys_led_pdata), 974cc7b93441a0 Pawel Moll 2014-04-23 69 }, { 974cc7b93441a0 Pawel Moll 2014-04-23 70 .name = "basic-mmio-gpio", 974cc7b93441a0 Pawel Moll 2014-04-23 71 .of_compatible = "arm,vexpress-sysreg,sys_mci", 974cc7b93441a0 Pawel Moll 2014-04-23 72 .num_resources = 1, 974cc7b93441a0 Pawel Moll 2014-04-23 73 .resources = (struct resource []) { 974cc7b93441a0 Pawel Moll 2014-04-23 74 DEFINE_RES_MEM_NAMED(SYS_MCI, 0x4, "dat"), 974cc7b93441a0 Pawel Moll 2014-04-23 75 }, 974cc7b93441a0 Pawel Moll 2014-04-23 76 .platform_data = &vexpress_sysreg_sys_mci_pdata, 974cc7b93441a0 Pawel Moll 2014-04-23 77 .pdata_size = sizeof(vexpress_sysreg_sys_mci_pdata), 974cc7b93441a0 Pawel Moll 2014-04-23 78 }, { 974cc7b93441a0 Pawel Moll 2014-04-23 79 .name = "basic-mmio-gpio", 974cc7b93441a0 Pawel Moll 2014-04-23 80 .of_compatible = "arm,vexpress-sysreg,sys_flash", 974cc7b93441a0 Pawel Moll 2014-04-23 81 .num_resources = 1, 974cc7b93441a0 Pawel Moll 2014-04-23 82 .resources = (struct resource []) { 974cc7b93441a0 Pawel Moll 2014-04-23 83 DEFINE_RES_MEM_NAMED(SYS_FLASH, 0x4, "dat"), 974cc7b93441a0 Pawel Moll 2014-04-23 84 }, 974cc7b93441a0 Pawel Moll 2014-04-23 85 .platform_data = &vexpress_sysreg_sys_flash_pdata, 974cc7b93441a0 Pawel Moll 2014-04-23 86 .pdata_size = sizeof(vexpress_sysreg_sys_flash_pdata), 974cc7b93441a0 Pawel Moll 2014-04-23 87 }, { 974cc7b93441a0 Pawel Moll 2014-04-23 88 .name = "vexpress-syscfg", 974cc7b93441a0 Pawel Moll 2014-04-23 89 .num_resources = 1, 974cc7b93441a0 Pawel Moll 2014-04-23 90 .resources = (struct resource []) { 310f80d6171742 Rob Herring 2020-04-29 91 DEFINE_RES_MEM(SYS_MISC, 0x4c), 974cc7b93441a0 Pawel Moll 2014-04-23 92 }, 88e0abcd7a8171 Pawel Moll 2012-09-18 93 } 974cc7b93441a0 Pawel Moll 2014-04-23 94 }; 88e0abcd7a8171 Pawel Moll 2012-09-18 95 -- 0-DAY CI Kernel Test Service https://01.org/lkp