Hi Carlos, kernel test robot noticed the following build errors:
[auto build test ERROR on v6.18] [also build test ERROR on linus/master next-20251202] [cannot apply to shawnguo/for-next] [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/Carlos-Song/spi-imx-group-spi_imx_dma_configure-with-spi_imx_dma_transfer/20251202-160030 base: v6.18 patch link: https://lore.kernel.org/r/20251202075503.2448339-6-carlos.song%40nxp.com patch subject: [PATCH v2 5/6] spi: imx: support dynamic burst length for ECSPI DMA mode config: csky-allmodconfig (https://download.01.org/0day-ci/archive/20251203/[email protected]/config) compiler: csky-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251203/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/spi/spi-imx.c:144:34: error: 'counted_by' attribute is not allowed >> for a non-array field 144 | struct dma_data_package *dma_data __counted_by(dma_package_num); | ^~~~~~~~ vim +/counted_by +144 drivers/spi/spi-imx.c 107 108 struct spi_imx_data { 109 struct spi_controller *controller; 110 struct device *dev; 111 112 struct completion xfer_done; 113 void __iomem *base; 114 unsigned long base_phys; 115 116 struct clk *clk_per; 117 struct clk *clk_ipg; 118 unsigned long spi_clk; 119 unsigned int spi_bus_clk; 120 121 unsigned int bits_per_word; 122 unsigned int spi_drctl; 123 124 unsigned int count, remainder; 125 void (*tx)(struct spi_imx_data *spi_imx); 126 void (*rx)(struct spi_imx_data *spi_imx); 127 void *rx_buf; 128 const void *tx_buf; 129 unsigned int txfifo; /* number of words pushed in tx FIFO */ 130 unsigned int dynamic_burst; 131 bool rx_only; 132 133 /* Target mode */ 134 bool target_mode; 135 bool target_aborted; 136 unsigned int target_burst; 137 138 /* DMA */ 139 bool usedma; 140 u32 wml; 141 struct completion dma_rx_completion; 142 struct completion dma_tx_completion; 143 size_t dma_package_num; > 144 struct dma_data_package *dma_data __counted_by(dma_package_num); 145 int rx_offset; 146 147 const struct spi_imx_devtype_data *devtype_data; 148 }; 149 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
