Messages in this thread | | | Date | Mon, 19 Sep 2022 07:31:28 +0800 | From | kernel test robot <> | Subject | [djbw-nvdimm:libnvdimm-pending 16/22] include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared; did you mean 'PUD_SHIFT'? |
| |
Hi Dan,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending head: 91eb2dbfe9f923835245b3fbd3fb824bb204f4d5 commit: 1e2051e6215765d0f2663480742dd0afdb98c93f [16/22] devdax: Move address_space helpers to the DAX core config: m68k-amcore_defconfig (https://download.01.org/0day-ci/archive/20220919/202209190746.tamxmZS8-lkp@intel.com/config) compiler: m68k-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/djbw/nvdimm.git/commit/?id=1e2051e6215765d0f2663480742dd0afdb98c93f git remote add djbw-nvdimm https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git git fetch --no-tags djbw-nvdimm libnvdimm-pending git checkout 1e2051e6215765d0f2663480742dd0afdb98c93f # 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=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from mm/filemap.c:15: include/linux/dax.h: In function 'pe_order': include/linux/dax.h:324:24: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 324 | return PMD_SHIFT - PAGE_SHIFT; | ^~~~~~~~~ | PUD_SHIFT include/linux/dax.h:324:24: note: each undeclared identifier is reported only once for each function it appears in 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:3, from include/linux/pgtable.h:6, from include/linux/mm.h:29, from include/linux/dax.h:6: >> 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/dax.h:326:24: note: in expansion of macro 'PUD_SHIFT' 326 | return PUD_SHIFT - PAGE_SHIFT; | ^~~~~~~~~ -- In file included from fs/binfmt_elf_fdpic.c:37: include/linux/dax.h: In function 'pe_order': include/linux/dax.h:324:24: error: 'PMD_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'? 324 | return PMD_SHIFT - PAGE_SHIFT; | ^~~~~~~~~ | PUD_SHIFT include/linux/dax.h:324:24: note: each undeclared identifier is reported only once for each function it appears in 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:3, from include/linux/pgtable.h:6, from include/linux/mm.h:29, from fs/binfmt_elf_fdpic.c:17: >> 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/dax.h:326:24: note: in expansion of macro 'PUD_SHIFT' 326 | return PUD_SHIFT - PAGE_SHIFT; | ^~~~~~~~~ fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_map_file': fs/binfmt_elf_fdpic.c:748:23: warning: variable 'load_addr' set but not used [-Wunused-but-set-variable] 748 | unsigned long load_addr, stop; | ^~~~~~~~~ fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_map_file_by_direct_mmap': fs/binfmt_elf_fdpic.c:1027:52: warning: variable 'excess1' set but not used [-Wunused-but-set-variable] 1027 | unsigned long maddr, disp, excess, excess1; | ^~~~~~~
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@linux.intel.com> :::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |