ARM: mvebu: remove unused val in mvebu_scan_mem
Subsystems (3)
PATCH 1/1 ARM: mvebu: remove unused val in mvebu_scan_mem
arch/arm/mach-mvebu/board-v7.c:87:13: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]
87 | u64 base, size;
| ^~~~Remove the unused define to fix the warning.
Reported-by Hulk Robot <[email protected]>
Signed-off-by yangerkun <[email protected]>
--- arch/arm/mach-mvebu/board-v7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mvebu/board-v7.c +2 -2
@@ -84,10 +84,10 @@ static int __init mvebu_scan_mem(unsigned long node, const char *uname, endp = reg + (l /sizeof (__be32));while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { -u64 base, size; +u64 base; base =dt_mem_next_cell (dt_root_addr_cells, ®); - size =dt_mem_next_cell (dt_root_size_cells, ®); +dt_mem_next_cell (dt_root_size_cells, ®);memblock_reserve (base,MVEBU_DDR_TRAINING_AREA_SZ ); }
Signature · 7 lines
2.31.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel