tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: 582d02322eb4f4d2d3903c0967216bc6b671164f [8/18] mm: enable pud allocations for
pg_table
config: sparc64-randconfig-a001-20200202 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.5.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 582d02322eb4f4d2d3903c0967216bc6b671164f
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/memory.c: In function '__pud_alloc':
> mm/memory.c:4074:3: error: implicit declaration of function
'_pgd_populate'; did you mean '__pgd_populate'?
[-Werror=implicit-function-declaration]
_pgd_populate(pgt, p4d, new);
^~~~~~~~~~~~~
__pgd_populate
cc1: some warnings being treated as errors
vim +4074 mm/memory.c
4050
4051 #ifndef __PAGETABLE_PUD_FOLDED
4052 /*
4053 * Allocate page upper directory.
4054 * We've already handled the fast-path in-line.
4055 */
4056 int __pud_alloc(struct pg_table *pgt, p4d_t *p4d, unsigned long address)
4057 {
4058 pud_t *new = pud_alloc_one(pgt, address);
4059 if (!new)
4060 return -ENOMEM;
4061
4062 smp_wmb(); /* See comment in __pte_alloc */
4063
4064 spin_lock(&pgt->page_table_lock);
4065 #ifndef __ARCH_HAS_5LEVEL_HACK
4066 if (!p4d_present(*p4d)) {
4067 mm_inc_nr_puds(pgt);
4068 _p4d_populate(pgt, p4d, new);
4069 } else /* Another has populated it */
4070 pud_free(new);
4071 #else
4072 if (!pgd_present(*p4d)) {
4073 mm_inc_nr_puds(pgt);
4074 _pgd_populate(pgt, p4d, new);
4075 } else /* Another
has populated it */
4076 pud_free(new);
4077 #endif /* __ARCH_HAS_5LEVEL_HACK */
4078 spin_unlock(&pgt->page_table_lock);
4079 return 0;
4080 }
4081 #endif /* __PAGETABLE_PUD_FOLDED */
4082
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation