tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3a00d3dfd4b68b208ecd5405e676d06c8ad6bb63 commit: 77e9fd730a120dd7346af9218d63f256b35123a5 [2865/2998] arch, drivers: replace for_each_membock() with for_each_mem_range() config: arm-randconfig-r021-20200826 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77e5a195f818b9ace91f7b12ab948b21d7918238) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi git checkout 77e9fd730a120dd7346af9218d63f256b35123a5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> arch/arm/mm/pmsa-v7.c:276:21: error: expected ';' after expression mem_end = reg_end ^ ; 1 error generated. # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=77e9fd730a120dd7346af9218d63f256b35123a5 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 77e9fd730a120dd7346af9218d63f256b35123a5 vim +276 arch/arm/mm/pmsa-v7.c 264 265 for_each_mem_range(i, ®_start, ®_end) { 266 if (i == 0) { 267 phys_addr_t phys_offset = PHYS_OFFSET; 268 269 /* 270 * Initially only use memory continuous from 271 * PHYS_OFFSET */ 272 if (reg_start != phys_offset) 273 panic("First memory bank must be contiguous from PHYS_OFFSET"); 274 275 mem_start = reg_start; > 276 mem_end = reg_end 277 specified_mem_size = mem_end - mem_start; 278 } else { 279 /* 280 * memblock auto merges contiguous blocks, remove 281 * all blocks afterwards in one go (we can't remove 282 * blocks separately while iterating) 283 */ 284 pr_notice("Ignoring RAM after %pa, memory at %pa ignored\n", 285 &mem_end, ®_start); 286 memblock_remove(reg_start, 0 - reg_start); 287 break; 288 } 289 } 290 291 memset(mem, 0, sizeof(mem)); 292 num = allocate_region(mem_start, specified_mem_size, mem_max_regions, mem); 293 294 for (i = 0; i < num; i++) { 295 unsigned long subreg = mem[i].size / PMSAv7_NR_SUBREGS; 296 297 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); 298 299 pr_debug("MPU: base %pa size %pa disable subregions: %*pbl\n", 300 &mem[i].base, &mem[i].size, PMSAv7_NR_SUBREGS, &mem[i].subreg); 301 } 302 303 if (total_mem_size != specified_mem_size) { 304 pr_warn("Truncating memory from %pa to %pa (MPU region constraints)", 305 &specified_mem_size, &total_mem_size); 306 memblock_remove(mem_start + total_mem_size, 307 specified_mem_size - total_mem_size); 308 } 309 } 310 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip