All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NIOS2: setup.c: drop unused variable 'dram_start'
@ 2021-09-24 21:05 Randy Dunlap
  2021-09-26  5:29 ` Mike Rapoport
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2021-09-24 21:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, kernel test robot, Dinh Nguyen, Andreas Oetken,
	Mike Rapoport

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>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Andreas Oetken <andreas.oetken@siemens.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
---
 arch/nios2/kernel/setup.c |    2 --
 1 file changed, 2 deletions(-)

--- linux-next-20210917.orig/arch/nios2/kernel/setup.c
+++ linux-next-20210917/arch/nios2/kernel/setup.c
@@ -149,8 +149,6 @@ static void __init find_limits(unsigned
 
 void __init setup_arch(char **cmdline_p)
 {
-	int dram_start;
-
 	console_verbose();
 
 	memory_start = memblock_start_of_DRAM();

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-27 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 21:05 [PATCH] NIOS2: setup.c: drop unused variable 'dram_start' Randy Dunlap
2021-09-26  5:29 ` Mike Rapoport
2021-09-27 13:40   ` Dinh Nguyen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.