linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 2865/2998] arch/arm/mm/pmsa-v7.c:276:21: error: expected ';' after expression
@ 2020-08-25 22:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-25 22:23 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: kbuild-all, clang-built-linux, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 3441 bytes --]

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@intel.com>

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, &reg_start, &reg_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, &reg_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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35814 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-25 22:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 22:23 [linux-next:master 2865/2998] arch/arm/mm/pmsa-v7.c:276:21: error: expected ';' after expression kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).