All of lore.kernel.org
 help / color / mirror / Atom feed
* [rppt:memory-models/rm-discontig/v1 5/9] arch/arm/mm/init.c:311:39: error: 'mem_map' undeclared; did you mean 'memunmap'?
@ 2021-05-26 12:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 12:19 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memory-models/rm-discontig/v1
head:   bb9fe24d1b478332cc8352e9325bab67f7ee4ba4
commit: c0b561de5955275e739b8a14c06360857937efb0 [5/9] mm: remove CONFIG_DISCONTIGMEM
config: arm-pleb_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id=c0b561de5955275e739b8a14c06360857937efb0
        git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
        git fetch --no-tags rppt memory-models/rm-discontig/v1
        git checkout c0b561de5955275e739b8a14c06360857937efb0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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/init.c:97:13: warning: no previous prototype for 'setup_dma_zone' [-Wmissing-prototypes]
      97 | void __init setup_dma_zone(const struct machine_desc *mdesc)
         |             ^~~~~~~~~~~~~~
   arch/arm/mm/init.c: In function 'mem_init':
>> arch/arm/mm/init.c:311:39: error: 'mem_map' undeclared (first use in this function); did you mean 'memunmap'?
     311 |  set_max_mapnr(pfn_to_page(max_pfn) - mem_map);
         |                                       ^~~~~~~
         |                                       memunmap
   arch/arm/mm/init.c:311:39: note: each undeclared identifier is reported only once for each function it appears in


vim +311 arch/arm/mm/init.c

ad3c7b18c5b362 Christoph Hellwig 2019-07-23  310  
b3ba41f28f7fe1 Santosh Shilimkar 2013-11-23 @311  	set_max_mapnr(pfn_to_page(max_pfn) - mem_map);
^1da177e4c3f41 Linus Torvalds    2005-04-16  312  
^1da177e4c3f41 Linus Torvalds    2005-04-16  313  	/* this will put all unused low memory onto the freelists */
c6ffc5ca8fb311 Mike Rapoport     2018-10-30  314  	memblock_free_all();
^1da177e4c3f41 Linus Torvalds    2005-04-16  315  

:::::: The code at line 311 was first introduced by commit
:::::: b3ba41f28f7fe147c23bfadf6280b3492c9696b1 ARM: mm: Fix max_mapnr with recent max*pfn updates

:::::: TO: Santosh Shilimkar <santosh.shilimkar@ti.com>
:::::: CC: Santosh Shilimkar <santosh.shilimkar@ti.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2021-05-26 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 12:19 [rppt:memory-models/rm-discontig/v1 5/9] arch/arm/mm/init.c:311:39: error: 'mem_map' undeclared; did you mean 'memunmap'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.