All of lore.kernel.org
 help / color / mirror / Atom feed
* [davidhildenbrand:folded_pgtable 28/32] arch/x86/platform/olpc/olpc_ofw.c:26:16: warning: variable 'ofw_pde' set but not used
@ 2026-07-09 12:37 kernel test robot
  0 siblings, 0 replies; only message 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: 4d449742015c33fd18a4aebf1ee795675c2b532f [28/32] mm/pgtable: disallow calling folded set_pgd/set_p4d/set_pud
config: i386-randconfig-r131-20260709 (https://download.01.org/0day-ci/archive/20260709/202607092037.bS6aWcUf-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607092037.bS6aWcUf-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/202607092037.bS6aWcUf-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/x86/platform/olpc/olpc_ofw.c:26:16: warning: variable 'ofw_pde' set but not used [-Wunused-but-set-variable]
      26 |         pgd_t *base, *ofw_pde;
         |                       ^
   1 warning generated.


vim +/ofw_pde +26 arch/x86/platform/olpc/olpc_ofw.c

fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  23  
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  24  void __init setup_olpc_ofw_pgd(void)
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  25  {
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 @26  	pgd_t *base, *ofw_pde;
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  27  
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  28  	if (!olpc_ofw_cif)
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  29  		return;
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  30  
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  31  	/* fetch OFW's PDE */
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  32  	base = early_ioremap(olpc_ofw_pgd, sizeof(olpc_ofw_pgd) * PTRS_PER_PGD);
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  33  	if (!base) {
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  34  		printk(KERN_ERR "failed to remap OFW's pgd - disabling OFW!\n");
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  35  		olpc_ofw_cif = NULL;
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  36  		return;
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  37  	}
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  38  	ofw_pde = &base[OLPC_OFW_PDE_NR];
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  39  
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  40  	/* install OFW's PDE permanently into the kernel's pgtable */
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  41  	set_pgd(&swapper_pg_dir[OLPC_OFW_PDE_NR], *ofw_pde);
75a9cac430a1bd arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-23  42  	/* implicit optimization barrier here due to uninline function return */
75a9cac430a1bd arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-23  43  
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  44  	early_iounmap(base, sizeof(olpc_ofw_pgd) * PTRS_PER_PGD);
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  45  }
fd699c76552bbf arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18  46  

:::::: The code at line 26 was first introduced by commit
:::::: fd699c76552bbfa66631f019be415a87dbb08237 x86, olpc: Add support for calling into OpenFirmware

:::::: TO: Andres Salomon <dilinger@queued.net>
:::::: CC: H. Peter Anvin <hpa@linux.intel.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-09 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 12:37 [davidhildenbrand:folded_pgtable 28/32] arch/x86/platform/olpc/olpc_ofw.c:26:16: warning: variable 'ofw_pde' set but not used 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.