All of lore.kernel.org
 help / color / mirror / Atom feed
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 28/32] arch/x86/platform/olpc/olpc_ofw.c:26:16: warning: variable 'ofw_pde' set but not used
Date: Thu, 09 Jul 2026 20:37:45 +0800	[thread overview]
Message-ID: <202607092037.bS6aWcUf-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-09 12:38 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=202607092037.bS6aWcUf-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.