* [linux-next:master 10835/11156] include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared; did you mean 'PUD_SHIFT'?
@ 2024-02-29 22:46 kernel test robot
2024-02-29 22:49 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-02-29 22:46 UTC (permalink / raw)
To: Matthew Wilcox (Oracle)
Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton
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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403010621.qsTLLsab-lkp@intel.com/
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@linux.intel.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-next:master 10835/11156] include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared; did you mean 'PUD_SHIFT'?
2024-02-29 22:46 [linux-next:master 10835/11156] include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared; did you mean 'PUD_SHIFT'? kernel test robot
@ 2024-02-29 22:49 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2024-02-29 22:49 UTC (permalink / raw)
To: kernel test robot
Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton
On Fri, Mar 01, 2024 at 06:46:29AM +0800, kernel test robot wrote:
> 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
> | ^~~~~~~~~~~
Thanks; already reported, fixed and merged. Try tomorrow's linux-next.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-29 22:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 22:46 [linux-next:master 10835/11156] include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared; did you mean 'PUD_SHIFT'? kernel test robot
2024-02-29 22:49 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox