2021-07-12 09:29:08

by Chen, Rong A

[permalink] [raw]
Subject: arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable]

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 <[email protected]>


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 <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]