linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 311/358] arch/arm64/include/asm/pgtable-hwdef.h:83:30: error: 'MAX_USER_VA_BITS' undeclared here (not in a function); did you mean 'MAX_USER_PRIO'?
@ 2018-12-23 17:18 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-12-23 17:18 UTC (permalink / raw)
  To: Andrew Morton
  Cc: kbuild-all, Linux Memory Management List, Waiman Long, Johannes Weiner

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   185e77e8b8de3d87af1667ec2876dd27f87a8eac
commit: 3b60c4a43dc86b6ef47eae75d6c50ac6f8166a05 [311/358] linux-next-git-rejects
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 3b60c4a43dc86b6ef47eae75d6c50ac6f8166a05
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   scripts/atomic/check-atomics.sh: line 16: scripts/atomic/gen-atomic-instrumented.sh: Permission denied
   scripts/atomic/check-atomics.sh: line 16: scripts/atomic/gen-atomic-long.sh: Permission denied
   scripts/atomic/check-atomics.sh: line 16: scripts/atomic/gen-atomic-fallback.sh: Permission denied
   In file included from arch/arm64/include/asm/processor.h:46:0,
                    from include/linux/rcupdate.h:43,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/arm64/kernel/asm-offsets.c:22:
>> arch/arm64/include/asm/pgtable-hwdef.h:83:30: error: 'MAX_USER_VA_BITS' undeclared here (not in a function); did you mean 'MAX_USER_PRIO'?
    #define PTRS_PER_PGD  (1 << (MAX_USER_VA_BITS - PGDIR_SHIFT))
                                 ^
   arch/arm64/include/asm/pgtable.h:442:26: note: in expansion of macro 'PTRS_PER_PGD'
    extern pgd_t init_pg_dir[PTRS_PER_PGD];
                             ^~~~~~~~~~~~
   make[2]: *** [arch/arm64/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +83 arch/arm64/include/asm/pgtable-hwdef.h

4f04d8f00 Catalin Marinas   2012-03-05  75  
4f04d8f00 Catalin Marinas   2012-03-05  76  /*
6b4fee241 Catalin Marinas   2014-07-15  77   * PGDIR_SHIFT determines the size a top-level page table entry can map
6b4fee241 Catalin Marinas   2014-07-15  78   * (depending on the configuration, this level can be 0, 1 or 2).
6b4fee241 Catalin Marinas   2014-07-15  79   */
686e78386 Suzuki K. Poulose 2015-10-19  80  #define PGDIR_SHIFT		ARM64_HW_PGTABLE_LEVEL_SHIFT(4 - CONFIG_PGTABLE_LEVELS)
6b4fee241 Catalin Marinas   2014-07-15  81  #define PGDIR_SIZE		(_AC(1, UL) << PGDIR_SHIFT)
6b4fee241 Catalin Marinas   2014-07-15  82  #define PGDIR_MASK		(~(PGDIR_SIZE-1))
2b4093c07 Andrew Morton     2018-12-22 @83  #define PTRS_PER_PGD		(1 << (MAX_USER_VA_BITS - PGDIR_SHIFT))
6b4fee241 Catalin Marinas   2014-07-15  84  

:::::: The code at line 83 was first introduced by commit
:::::: 2b4093c07c9969ae9448cdd30a6c5d7ebddba1f4 linux-next

:::::: TO: Andrew Morton <akpm@linux-foundation.org>
:::::: CC: Johannes Weiner <hannes@cmpxchg.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

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

only message in thread, other threads:[~2018-12-23 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23 17:18 [mmotm:master 311/358] arch/arm64/include/asm/pgtable-hwdef.h:83:30: error: 'MAX_USER_VA_BITS' undeclared here (not in a function); did you mean 'MAX_USER_PRIO'? kbuild 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).