[PATCH 1/4] xilinx: common: Add missing prototype for board_get_usable_ram_top

Ashok Reddy Soma ashok.reddy.soma at amd.com
Fri Jan 6 13:00:32 CET 2023


From: Algapally Santosh Sagar <santoshsagar.algapally at amd.com>

Add missing prototype to fix the sparse warning, warning: no previous
prototype for 'board_get_usable_ram_top' [-Wmissing-prototypes].

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally at amd.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at amd.com>
---

 board/xilinx/common/board.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/xilinx/common/board.h b/board/xilinx/common/board.h
index 69e642429b..ef7f3f3dce 100644
--- a/board/xilinx/common/board.h
+++ b/board/xilinx/common/board.h
@@ -11,4 +11,8 @@ int board_late_init_xilinx(void);
 
 int xilinx_read_eeprom(void);
 
+#if defined(CONFIG_LMB)
+phys_size_t board_get_usable_ram_top(phys_size_t total_size);
+#endif
+
 #endif /* BOARD_XILINX_COMMON_BOARD_H */
-- 
2.17.1



More information about the U-Boot mailing list