[PATCH v2 1/4] xilinx: common: Include header file to fix warning

Ashok Reddy Soma ashok.reddy.soma at amd.com
Fri Jan 20 06:36:14 CET 2023


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

Prototype is missing for board_get_usable_ram_top, which is pointed by
below sparse warning. Include init.h header file to fix this.

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>
---

Changes in v2:
 - Included header file instead of declaring prototype
 - Modified description to reflect the same

 board/xilinx/common/board.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 59d87f2352..a5bd289776 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -9,6 +9,7 @@
 #include <efi_loader.h>
 #include <env.h>
 #include <image.h>
+#include <init.h>
 #include <lmb.h>
 #include <log.h>
 #include <asm/global_data.h>
-- 
2.17.1



More information about the U-Boot mailing list