[PATCH 01/18] init.h: Add "struct cmd_tbl"

Tom Rini trini at konsulko.com
Sat Apr 27 16:10:49 CEST 2024


In order to avoid needing to add <command.h> to this file, add "struct
cmd_tbl" before the prototype for do_bdinfo().

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 include/init.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/init.h b/include/init.h
index 630d86729c4e..2c10171359cf 100644
--- a/include/init.h
+++ b/include/init.h
@@ -401,6 +401,8 @@ void bdinfo_print_size(const char *name, uint64_t size);
 /* Show arch-specific information for the 'bd' command */
 void arch_print_bdinfo(void);
 
+struct cmd_tbl;
+
 int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 #endif	/* __ASSEMBLY__ */
-- 
2.34.1



More information about the U-Boot mailing list