tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 663397d1b469ff57f216d499b74a0b0183a508b8 commit: 80b6093b55e31c2c40ff082fb32523d4e852954f [14244/15062] kbuild: add -Wundef to KBUILD_CPPFLAGS for W=1 builds config: parisc-randconfig-r033-20221214 compiler: hppa-linux-gcc (GCC) 12.1.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/next/linux-next.git/commit/?id=80b6093b55e31c2c40ff082fb32523d4e852954f 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 80b6093b55e31c2c40ff082fb32523d4e852954f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/pgtable.h:6, from arch/parisc/kernel/head.S:23: >> arch/parisc/include/asm/pgtable.h:169:32: warning: "PMD_SHIFT" is not defined, evaluates to 0 [-Wundef] 169 | #if (KERNEL_INITIAL_ORDER) >= (PMD_SHIFT) | ^~~~~~~~~ vim +/PMD_SHIFT +169 arch/parisc/include/asm/pgtable.h ^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 166 ^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 167 /* This calculates the number of initial pages we need for the initial ^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 168 * page tables */ 2fd83038160531 include/asm-parisc/pgtable.h Helge Deller 2006-04-20 @169 #if (KERNEL_INITIAL_ORDER) >= (PMD_SHIFT) ^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 170 # define PT_INITIAL (1 << (KERNEL_INITIAL_ORDER - PMD_SHIFT)) 2fd83038160531 include/asm-parisc/pgtable.h Helge Deller 2006-04-20 171 #else 2fd83038160531 include/asm-parisc/pgtable.h Helge Deller 2006-04-20 172 # define PT_INITIAL (1) /* all initial PTEs fit into one page */ 2fd83038160531 include/asm-parisc/pgtable.h Helge Deller 2006-04-20 173 #endif ^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 174 :::::: The code at line 169 was first introduced by commit :::::: 2fd83038160531245099c3c5b3511fa4b80765eb [PARISC] Further work for multiple page sizes :::::: TO: Helge Deller :::::: CC: Kyle McMartin -- 0-DAY CI Kernel Test Service https://01.org/lkp