From: kernel test robot <lkp@intel.com>
To: "Alex Shi (Tencent)" <alexs@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [alexshi:mmunstable 36/43] include/linux/mm.h:3005:25: error: use of undeclared identifier 'PTRS_PER_PMD'
Date: Sun, 21 Jul 2024 11:11:22 +0800 [thread overview]
Message-ID: <202407211101.xBeq33Ev-lkp@intel.com> (raw)
tree: https://github.com/alexshi/linux.git mmunstable
head: 6c298a18633e397b8be4d6f48fc8cd1f860dd896
commit: e85f4771561b1e804a7ae4d386e81bc9545bd47d [36/43] mm/pgtable: define pmd_ptdesc() helper out of USE_SPLIT_PMD_PTLOCKS
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240721/202407211101.xBeq33Ev-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad154281230d83ee551e12d5be48bb956ef47ed3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240721/202407211101.xBeq33Ev-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/202407211101.xBeq33Ev-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm/kernel/asm-offsets.c:12:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:3005:25: error: use of undeclared identifier 'PTRS_PER_PMD'
3005 | unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
| ^
1 warning and 1 error generated.
make[3]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1208: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:240: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/PTRS_PER_PMD +3005 include/linux/mm.h
3ed3a4f0ddffec Kirill A. Shutemov 2016-03-17 2991
3ed3a4f0ddffec Kirill A. Shutemov 2016-03-17 2992 #define pte_alloc_map(mm, pmd, address) \
4cf58924951ef8 Joel Fernandes (Google 2019-01-03 2993) (pte_alloc(mm, pmd) ? NULL : pte_offset_map(pmd, address))
1bb3630e89cb8a Hugh Dickins 2005-10-29 2994
c74df32c724a16 Hugh Dickins 2005-10-29 2995 #define pte_alloc_map_lock(mm, pmd, address, ptlp) \
4cf58924951ef8 Joel Fernandes (Google 2019-01-03 2996) (pte_alloc(mm, pmd) ? \
c74df32c724a16 Hugh Dickins 2005-10-29 2997 NULL : pte_offset_map_lock(mm, pmd, address, ptlp))
c74df32c724a16 Hugh Dickins 2005-10-29 2998
1bb3630e89cb8a Hugh Dickins 2005-10-29 2999 #define pte_alloc_kernel(pmd, address) \
4cf58924951ef8 Joel Fernandes (Google 2019-01-03 3000) ((unlikely(pmd_none(*(pmd))) && __pte_alloc_kernel(pmd))? \
1bb3630e89cb8a Hugh Dickins 2005-10-29 3001 NULL: pte_offset_kernel(pmd, address))
^1da177e4c3f41 Linus Torvalds 2005-04-16 3002
7e25de77bc5ea5 Anshuman Khandual 2022-11-25 3003 static inline struct page *pmd_pgtable_page(pmd_t *pmd)
634391ace193d0 Martin Schwidefsky 2014-02-13 3004 {
634391ace193d0 Martin Schwidefsky 2014-02-13 @3005 unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
634391ace193d0 Martin Schwidefsky 2014-02-13 3006 return virt_to_page((void *)((unsigned long) pmd & mask));
634391ace193d0 Martin Schwidefsky 2014-02-13 3007 }
634391ace193d0 Martin Schwidefsky 2014-02-13 3008
:::::: The code at line 3005 was first introduced by commit
:::::: 634391ace193d00c59a691e9fc227b0f8942bad7 mm: mask bits from pmd in pmd_lockptr/pmd_huge_pte
:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-21 3:12 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=202407211101.xBeq33Ev-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexs@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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