From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 28 Jan 2018 13:54:00 -0500 Subject: [U-Boot] [U-Boot, v3, 3/6] tools: include necessary headers explicitly In-Reply-To: <1516529958-16441-3-git-send-email-yamada.masahiro@socionext.com> References: <1516529958-16441-3-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20180128185400.GU20149@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jan 21, 2018 at 07:19:15PM +0900, Masahiro Yamada wrote: > Several host-tools use "bool" type without including . > This relies on the crappy header inclusion chain. > > tools/Makefile has the following line: > > HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \ > > All host-tools are forced to include libfdt_env.h even if they are > totally unrelated to FDT. Then, is indirectly included > as follows: > > include/libfdt_env.h > -> include/linux/types.h > -> > > I am fixing this horrible crap. In advance, I need to add necessary > include directives explicitly. tools/fdtgrep.c needs more; > for open() and for errno. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Joe Hershberger > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: