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 <redacted>
Signed-off-by: yangerkun <redacted>
---
arch/arm/mach-mvebu/board-v7.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c
index d2df5ef9382b..40e33fd4ec2a 100644
--- a/arch/arm/mach-mvebu/board-v7.c
+++ b/arch/arm/mach-mvebu/board-v7.c
@@ -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);
}--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel