mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <rong.a.chen@intel.com>
To: Andreas Oetken <andreas.oetken@siemens.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Ley Foon Tan <ley.foon.tan@intel.com>
Subject: arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable]
Date: Mon, 12 Jul 2021 17:27:44 +0800	[thread overview]
Message-ID: <20210712092743.GR2022171@shao2-debian> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1e16624d7b4376797ede36e3c955375cf0f23298
commit: 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae nios2: Don't use _end for calculating min_low_pfn
date:   5 months ago
compiler: nios2-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable]
    int dram_start;
        ^
   arch/nios2/kernel/setup.c:131:6: warning: Uninitialized variable: cmdline_passed [uninitvar]
    if (cmdline_passed[0])
        ^

vim +152 arch/nios2/kernel/setup.c

7f7bc20bc41a4f Andreas Oetken 2021-02-19  149  
27d22413e60009 Ley Foon Tan   2014-11-06  150  void __init setup_arch(char **cmdline_p)
27d22413e60009 Ley Foon Tan   2014-11-06  151  {
0042379279bcac Mike Rapoport  2018-10-26 @152  	int dram_start;

:::::: The code at line 152 was first introduced by commit
:::::: 0042379279bcac871d2a60172f942a3a255ec611 nios2: switch to NO_BOOTMEM

:::::: TO: Mike Rapoport <rppt@linux.vnet.ibm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-07-12  9:27 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=20210712092743.GR2022171@shao2-debian \
    --to=rong.a.chen@intel.com \
    --cc=andreas.oetken@siemens.com \
    --cc=kbuild-all@lists.01.org \
    --cc=ley.foon.tan@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®