From: kernel test robot <lkp@intel.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:folded_pgtable 29/32] arch/x86/mm/pgtable.c:250:23: warning: variable 'pudp_s' set but not used
Date: Thu, 09 Jul 2026 04:21:50 +0200 [thread overview]
Message-ID: <202607090449.nuF7ILjx-lkp@intel.com> (raw)
tree: https://github.com/davidhildenbrand/linux folded_pgtable
head: 0551ca68b7552b7d71f1d2882635809a573d6c79
commit: 0963570e536ad72776105fbd404b09e35b19927a [29/32] mm/pgtable: disallow calling folded (pgd|p4d|pud)_page, pgd_page_vaddr() and (p4d|pud)_pgtable
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260709/202607090449.nuF7ILjx-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607090449.nuF7ILjx-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/202607090449.nuF7ILjx-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/mm/pgtable.c: In function 'pgd_prepopulate_pmd':
>> arch/x86/mm/pgtable.c:250:23: warning: variable 'pudp_s' set but not used [-Wunused-but-set-variable]
250 | pud_t *pudp, *pudp_s;
| ^~~~~~
In file included from <command-line>:
arch/x86/mm/pgtable.c: In function 'pudp_set_access_flags':
././include/linux/compiler_types.h:702:45: error: call to '__compiletime_assert_484' declared with attribute error: BUILD_BUG failed
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
././include/linux/compiler_types.h:683:25: note: in definition of macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^~~~~~
././include/linux/compiler_types.h:702:9: note: in expansion of macro '_compiletime_assert'
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:60:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
60 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
| ^~~~~~~~~~~~~~~~
./include/asm-generic/pgtable-nopmd.h:41:49: note: in expansion of macro 'BUILD_BUG'
41 | #define set_pud(pudptr, pudval) BUILD_BUG()
| ^~~~~~~~~
arch/x86/mm/pgtable.c:434:17: note: in expansion of macro 'set_pud'
434 | set_pud(pudp, entry);
| ^~~~~~~
vim +/pudp_s +250 arch/x86/mm/pgtable.c
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 246
0a3c7e279b112f Yeoreum Yun 2026-07-08 247 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgdp, pmd_t *pmds[])
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 248 {
0a3c7e279b112f Yeoreum Yun 2026-07-08 249 p4d_t *p4dp, *p4dp_s;
0a3c7e279b112f Yeoreum Yun 2026-07-08 @250 pud_t *pudp, *pudp_s;
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 251 int i;
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 252
0a3c7e279b112f Yeoreum Yun 2026-07-08 253 p4dp = p4d_offset(pgdp, 0);
0a3c7e279b112f Yeoreum Yun 2026-07-08 254 pudp = pud_offset(p4dp, 0);
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 255
0a3c7e279b112f Yeoreum Yun 2026-07-08 256 for (i = 0; i < PREALLOCATED_PMDS; i++, pudp++) {
d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 257 pmd_t *pmd = pmds[i];
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 258
0a3c7e279b112f Yeoreum Yun 2026-07-08 259 if (i >= KERNEL_PGD_BOUNDARY) {
0a3c7e279b112f Yeoreum Yun 2026-07-08 260 p4dp_s = p4d_offset(&swapper_pg_dir[i], 0);
0a3c7e279b112f Yeoreum Yun 2026-07-08 261 pudp_s = pud_offset(p4dp_s, 0);
0a3c7e279b112f Yeoreum Yun 2026-07-08 262
0a3c7e279b112f Yeoreum Yun 2026-07-08 263 memcpy(pmd, (pmd_t *)pud_pgtable(pudp_get(pudp_s)),
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 264 sizeof(pmd_t) * PTRS_PER_PMD);
0a3c7e279b112f Yeoreum Yun 2026-07-08 265 }
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 266
0a3c7e279b112f Yeoreum Yun 2026-07-08 267 pud_populate(mm, pudp, pmd);
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 268 }
4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 269 }
1ec1fe73dfb711 Ingo Molnar 2008-03-19 270
:::::: The code at line 250 was first introduced by commit
:::::: 0a3c7e279b112f82e4a7a2a24e499fe971b871a3 x86: mm: remove usage of pgd_page_vaddr() for CONFIG_x86_PAE
:::::: TO: Yeoreum Yun <yeoreum.yun@arm.com>
:::::: CC: David Hildenbrand (Arm) <david@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-07-09 2:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 2:21 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-09 12:37 [davidhildenbrand:folded_pgtable 29/32] arch/x86/mm/pgtable.c:250:23: warning: variable 'pudp_s' set but not used kernel test robot
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=202607090449.nuF7ILjx-lkp@intel.com \
--to=lkp@intel.com \
--cc=david@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.