debug_vm_pgtable.c:undefined reference to `pmd_set_huge'

From: kernel test robot
Date: Fri Nov 12 2021 - 00:18:29 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: d8a719059b9dc963aa190598778ac804ff3e6a87 Revert "mm/pgtable: add stubs for {pmd/pub}_{set/clear}_huge"
date: 4 months ago
config: powerpc-randconfig-s032-20210930 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d8a719059b9dc963aa190598778ac804ff3e6a87
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d8a719059b9dc963aa190598778ac804ff3e6a87
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

powerpc-linux-ld: mm/debug_vm_pgtable.o: in function `pmd_huge_tests':
>> debug_vm_pgtable.c:(.init.text+0x198): undefined reference to `pmd_set_huge'
powerpc-linux-ld: mm/debug_vm_pgtable.o: in function `pud_huge_tests':
>> debug_vm_pgtable.c:(.init.text+0x2a4): undefined reference to `pud_set_huge'

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

Attachment: .config.gz
Description: application/gzip