]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: mvebu: Warn about memory chunks too small for DDR training
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 12 Jul 2024 08:13:01 +0000 (10:13 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Mon, 2 Sep 2024 12:34:58 +0000 (14:34 +0200)
commit499243b4058073e60cff0d66a023a16ac6bd9d3f
treef93c4a25d37fed4c9312ed75496a8f65944a4d4a
parent8400291e289ee6b2bf9779ff1c83a291501f017b
ARM: mvebu: Warn about memory chunks too small for DDR training

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@baylibre.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/mach-mvebu/board-v7.c