From: Stefano Babic Date: Fri, 25 Jul 2008 06:57:40 +0000 (+0200) Subject: Add include for config.h in command.h. X-Git-Tag: v2025.01-rc5-pxa1908~21999^2~29 X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=5d1d00fb36005482e1803a00ddc46efa11d719af;p=u-boot.git Add include for config.h in command.h. Because the cmd_tbl_s structure depends on the configuration file, it must be assured that config.h is included before the structure is evaluated by the compiler. If this is not certain, it could happen that the compiler generates structures of different size, depending on the fact if the source file includes before or after . The effect is that u-boot crashes when tries to relocate the command table (for ppc) or try to access to the command table for other architectures. The problem can happen on board-depending commands. All general commands under /common are unaffected, because they include already config.h before command.h. Signed-off-by: Stefano Babic --- diff --git a/include/command.h b/include/command.h index c3ef51d8c4..4a27e97247 100644 --- a/include/command.h +++ b/include/command.h @@ -27,6 +27,8 @@ #ifndef __COMMAND_H #define __COMMAND_H +#include + #ifndef NULL #define NULL 0 #endif