tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: bb74bc369fd2ab5f41a32c4ddc2e23bc76c3c550 commit: 4332dbb07181359cccca3ba757ef54e434fb1296 [9619/9669] Add kh40000_direct_dma_ops for KH-40000 platform config: x86_64-buildonly-randconfig-002-20240520 (https://download.01.org/0day-ci/archive/20240520/202405202102.9bImbUvA-lkp@i...) compiler: gcc-11 (Ubuntu 11.4.0-4ubuntu1) 11.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240520/202405202102.9bImbUvA-lkp@i...)
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 lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202405202102.9bImbUvA-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/dma/contiguous.c: In function 'dma_contiguous_reserve':
kernel/dma/contiguous.c:228:13: error: 'is_zhaoxin_kh40000' undeclared (first use in this function)
228 | if (is_zhaoxin_kh40000) | ^~~~~~~~~~~~~~~~~~ kernel/dma/contiguous.c:228:13: note: each undeclared identifier is reported only once for each function it appears in
vim +/is_zhaoxin_kh40000 +228 kernel/dma/contiguous.c
208 209 /** 210 * dma_contiguous_reserve() - reserve area(s) for contiguous memory handling 211 * @limit: End address of the reserved memory (optional, 0 for any). 212 * 213 * This function reserves memory from early allocator. It should be 214 * called by arch specific code once the early allocator (memblock or bootmem) 215 * has been activated and all other subsystems have already allocated/reserved 216 * memory. 217 */ 218 void __init dma_contiguous_reserve(phys_addr_t limit) 219 { 220 phys_addr_t selected_size = 0; 221 phys_addr_t selected_base = 0; 222 phys_addr_t selected_limit = limit; 223 bool fixed = false; 224 225 dma_numa_cma_reserve(); 226 227 #if defined(CONFIG_X86_64) && defined(CONFIG_PCI)
228 if (is_zhaoxin_kh40000)
229 return; 230 #endif 231 pr_debug("%s(limit %08lx)\n", __func__, (unsigned long)limit); 232 233 if (size_cmdline != -1) { 234 selected_size = size_cmdline; 235 selected_base = base_cmdline; 236 selected_limit = min_not_zero(limit_cmdline, limit); 237 if (base_cmdline + size_cmdline == limit_cmdline) 238 fixed = true; 239 } else { 240 #ifdef CONFIG_CMA_SIZE_SEL_MBYTES 241 selected_size = size_bytes; 242 #elif defined(CONFIG_CMA_SIZE_SEL_PERCENTAGE) 243 selected_size = cma_early_percent_memory(); 244 #elif defined(CONFIG_CMA_SIZE_SEL_MIN) 245 selected_size = min(size_bytes, cma_early_percent_memory()); 246 #elif defined(CONFIG_CMA_SIZE_SEL_MAX) 247 selected_size = max(size_bytes, cma_early_percent_memory()); 248 #endif 249 } 250 251 if (selected_size && !dma_contiguous_default_area) { 252 pr_debug("%s: reserving %ld MiB for global area\n", __func__, 253 (unsigned long)selected_size / SZ_1M); 254 255 dma_contiguous_reserve_area(selected_size, selected_base, 256 selected_limit, 257 &dma_contiguous_default_area, 258 fixed); 259 } 260 } 261