tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f303a3e2bcfba900efb5aee55236d17030e9f882 commit: d67cd9f23139ddfd7e0ef1e18474c16445188433 [10835/11156] mm: add __dump_folio() config: m68k-allnoconfig (https://download.01.org/0day-ci/archive/20240301/202403010621.qsTLLsab-lkp@xxxxxxxxx/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240301/202403010621.qsTLLsab-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202403010621.qsTLLsab-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from include/asm-generic/pgtable-nopud.h:7, from arch/m68k/include/asm/pgtable_no.h:5, from arch/m68k/include/asm/pgtable.h:6, from include/linux/pgtable.h:6, from include/linux/mm.h:29, from mm/debug.c:10: mm/debug.c: In function '__dump_page': >> include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ include/linux/pgtable.h:9:26: note: in expansion of macro 'PUD_SHIFT' 9 | #define PUD_ORDER (PUD_SHIFT - PAGE_SHIFT) | ^~~~~~~~~ mm/debug.c:128:35: note: in expansion of macro 'PUD_ORDER' 128 | if (idx < (1UL << PUD_ORDER)) { | ^~~~~~~~~ include/asm-generic/pgtable-nop4d.h:11:33: note: each undeclared identifier is reported only once for each function it appears in 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro 'P4D_SHIFT' 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ include/linux/pgtable.h:9:26: note: in expansion of macro 'PUD_SHIFT' 9 | #define PUD_ORDER (PUD_SHIFT - PAGE_SHIFT) | ^~~~~~~~~ mm/debug.c:128:35: note: in expansion of macro 'PUD_ORDER' 128 | if (idx < (1UL << PUD_ORDER)) { | ^~~~~~~~~ vim +11 include/asm-generic/pgtable-nop4d.h 048456dcf2c56a Kirill A. Shutemov 2017-03-09 10 048456dcf2c56a Kirill A. Shutemov 2017-03-09 @11 #define P4D_SHIFT PGDIR_SHIFT 048456dcf2c56a Kirill A. Shutemov 2017-03-09 12 #define PTRS_PER_P4D 1 048456dcf2c56a Kirill A. Shutemov 2017-03-09 13 #define P4D_SIZE (1UL << P4D_SHIFT) 048456dcf2c56a Kirill A. Shutemov 2017-03-09 14 #define P4D_MASK (~(P4D_SIZE-1)) 048456dcf2c56a Kirill A. Shutemov 2017-03-09 15 :::::: The code at line 11 was first introduced by commit :::::: 048456dcf2c56ad6f6248e2899dda92fb6a613f6 asm-generic: introduce <asm-generic/pgtable-nop4d.h> :::::: TO: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki