git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c714d
)
arm: rockchip: Explicitly cast gd->ram_top in dram_init_banksize()
author
Bin Meng
<bin.meng@windriver.com>
Sun, 31 Jan 2021 12:35:58 +0000
(20:35 +0800)
committer
Simon Glass
<sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000
(
03:38
-0700)
The min() macro used in dram_init_banksize() requires two elements
to compare have the same type. Let's explicitly cast gd->ram_top.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
arch/arm/mach-rockchip/sdram.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/sdram.c
b/arch/arm/mach-rockchip/sdram.c
index
4c637b7
..
c3d5fed
100644
(file)
--- a/
arch/arm/mach-rockchip/sdram.c
+++ b/
arch/arm/mach-rockchip/sdram.c
@@
-37,7
+37,7
@@
struct tos_parameter_t {
int dram_init_banksize(void)
{
size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE),
-
gd->ram_top
);
+
(unsigned long)(gd->ram_top)
);
#ifdef CONFIG_ARM64
/* Reserve 0x200000 for ATF bl31 */