]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: memtop: Fix the return type for find_ram_top
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Fri, 20 Dec 2024 03:07:42 +0000 (08:37 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 20 Dec 2024 08:17:43 +0000 (09:17 +0100)
commit1b70b6c9cc98290fbd46da09c9f5a95f45121148
tree8afcf1755d7e2b49a6841703df975e7113c514bd
parentc06705a9a13d58e799b98927c360e93954b62860
common: memtop: Fix the return type for find_ram_top

As the return type is "int" for find_ram_top() function and
returning the "base" which is of phys_addr_t is breaking when the
"base" address is 64-bit. So fix this by updating the return type as
phys_addr_t.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Link: https://lore.kernel.org/r/20241220030742.1745984-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
common/memtop.c