NIOS2: setup.c: drop unused variable 'dram_start'
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 24 Sep 2021 21:05:25 +0000 (14:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Oct 2021 05:53:18 +0000 (07:53 +0200)
commit47d791dbe1ba62a98f9315f28e4adb5b4fbdba34
tree986bd038f77a1dccb9fec8876abe652d3cad8d98
parenta7931aa8176029b6c3e1eb27eb89f3ec2e780b08
NIOS2: setup.c: drop unused variable 'dram_start'

commit 9523b33cc31cf8ce703f8facee9fd16cba36d5ad 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: 7f7bc20bc41a ("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>
arch/nios2/kernel/setup.c