From: kernel test robot <lkp@intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: oe-kbuild-all@lists.linux.dev, linux-hwmon@vger.kernel.org
Subject: [groeck-staging:testing 5/11] arch/nios2/kernel/prom.c:24:17: warning: unused variable 'dtb'
Date: Fri, 22 Mar 2024 14:25:31 +0800 [thread overview]
Message-ID: <202403221428.i3uDsXt4-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git testing
head: fb903d9dd099da7430dc653a99670d6f2676daf6
commit: 6e2e5d9394a30805514cd15a078ad361ac68c50b [5/11] nios2: Only use built-in devicetree blob if configured to do so
config: nios2-allnoconfig (https://download.01.org/0day-ci/archive/20240322/202403221428.i3uDsXt4-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240322/202403221428.i3uDsXt4-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/202403221428.i3uDsXt4-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/nios2/kernel/prom.c: In function 'early_init_devtree':
>> arch/nios2/kernel/prom.c:24:17: warning: unused variable 'dtb' [-Wunused-variable]
24 | __be32 *dtb = (u32 *)__dtb_start;
| ^~~
vim +/dtb +24 arch/nios2/kernel/prom.c
95acd4c7b69c9b Ley Foon Tan 2014-11-06 21
95acd4c7b69c9b Ley Foon Tan 2014-11-06 22 void __init early_init_devtree(void *params)
95acd4c7b69c9b Ley Foon Tan 2014-11-06 23 {
95acd4c7b69c9b Ley Foon Tan 2014-11-06 @24 __be32 *dtb = (u32 *)__dtb_start;
95acd4c7b69c9b Ley Foon Tan 2014-11-06 25 #if defined(CONFIG_NIOS2_DTB_AT_PHYS_ADDR)
95acd4c7b69c9b Ley Foon Tan 2014-11-06 26 if (be32_to_cpup((__be32 *)CONFIG_NIOS2_DTB_PHYS_ADDR) ==
95acd4c7b69c9b Ley Foon Tan 2014-11-06 27 OF_DT_HEADER) {
95acd4c7b69c9b Ley Foon Tan 2014-11-06 28 params = (void *)CONFIG_NIOS2_DTB_PHYS_ADDR;
95acd4c7b69c9b Ley Foon Tan 2014-11-06 29 early_init_dt_scan(params);
95acd4c7b69c9b Ley Foon Tan 2014-11-06 30 return;
95acd4c7b69c9b Ley Foon Tan 2014-11-06 31 }
95acd4c7b69c9b Ley Foon Tan 2014-11-06 32 #endif
6e2e5d9394a308 Guenter Roeck 2024-03-21 33
:::::: The code at line 24 was first introduced by commit
:::::: 95acd4c7b69c9b250d901d154390ec4c8b7b51c1 nios2: Device tree support
:::::: TO: Ley Foon Tan <lftan@altera.com>
:::::: CC: Ley Foon Tan <lftan@altera.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-03-22 6:26 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=202403221428.i3uDsXt4-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).