[PATCH v2] ARM: mvebu: Warn about memory chunks too small for DDR training

Andrew Lunn andrew at lunn.ch
Sat Jul 13 10:35:46 PDT 2024


On Fri, Jul 12, 2024 at 10:13:01AM +0200, Uwe Kleine-König wrote:
> For each memory region the first 10K are reserved for DDR training. Emit
> a warning if the area happens to be smaller than these 10K. This should
> not happen, but if it does this message simplifies diagnosing the
> problem.
> 
> This fixes a W=1 compiler error:
> 
> 	arch/arm/mach-mvebu/board-v7.c: In function ‘mvebu_scan_mem’:
> 	arch/arm/mach-mvebu/board-v7.c:84:27: error: variable ‘size’ set but not used [-Werror=unused-but-set-variable]
> 	   84 |                 u64 base, size;
> 	      |                           ^~~~
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the linux-arm-kernel mailing list