All of lore.kernel.org
 help / color / mirror / Atom feed
* [davidhildenbrand:folded_pgtable 29/32] arch/x86/mm/pgtable.c:250:23: warning: variable 'pudp_s' set but not used
@ 2026-07-09  2:21 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-09  2:21 UTC (permalink / raw)
  To: David Hildenbrand (Arm); +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [davidhildenbrand:folded_pgtable 29/32] arch/x86/mm/pgtable.c:250:23: warning: variable 'pudp_s' set but not used
@ 2026-07-09 12:37 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-09 12:37 UTC (permalink / raw)
  To: David Hildenbrand (Arm); +Cc: oe-kbuild-all

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 (https://download.01.org/0day-ci/archive/20260709/202607092000.jvTf3jGx-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/202607092000.jvTf3jGx-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/202607092000.jvTf3jGx-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;
         |                       ^~~~~~


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-09 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09  2:21 [davidhildenbrand:folded_pgtable 29/32] arch/x86/mm/pgtable.c:250:23: warning: variable 'pudp_s' set but not used kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-07-09 12:37 kernel test robot

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.