Skip to content

Commit

Permalink
NIOS2: setup.c: drop unused variable 'dram_start'
Browse files Browse the repository at this point in the history
commit 9523b33 upstream.

This is a nuisance when CONFIG_WERROR is set, so drop the variable
declaration since the code that used it was removed.

../arch/nios2/kernel/setup.c: In function 'setup_arch':
../arch/nios2/kernel/setup.c:152:13: warning: unused variable 'dram_start' [-Wunused-variable]
  152 |         int dram_start;

Fixes: 7f7bc20 ("nios2: Don't use _end for calculating min_low_pfn")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Andreas Oetken <andreas.oetken@siemens.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
rddunlap authored and gregkh committed Oct 7, 2021
1 parent a7931aa commit 47d791d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/nios2/kernel/setup.c
Expand Up @@ -149,8 +149,6 @@ static void __init find_limits(unsigned long *min, unsigned long *max_low,

void __init setup_arch(char **cmdline_p)
{
int dram_start;

console_verbose();

memory_start = memblock_start_of_DRAM();
Expand Down

0 comments on commit 47d791d

Please sign in to comment.