From: kernel test robot <lkp@intel.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [djbw-nvdimm:libnvdimm-pending 16/22] include/asm-generic/pgtable-nop4d.h:11:33: error: 'PGDIR_SHIFT' undeclared; did you mean 'PUD_SHIFT'?
Date: Mon, 19 Sep 2022 07:31:28 +0800 [thread overview]
Message-ID: <202209190746.tamxmZS8-lkp@intel.com> (raw)
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
reply other threads:[~2022-09-18 23:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202209190746.tamxmZS8-lkp@intel.com \
--to=lkp@intel.com \
--cc=dan.j.williams@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®