From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Sun, 26 Jan 2020 17:12:39 -0500 Subject: [PATCH v2 03/11] riscv: Add headers for asm/global_data.h In-Reply-To: References: <3411d84b-5a56-ae4e-1deb-085ef1a4971d@gmail.com> <5203bcac-aea1-ad14-1c8e-e2a699be30b3@gmail.com> Message-ID: <08994943-ffc1-b3e7-b26d-e0f48a459ec4@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 1/26/20 5:04 PM, Lukas Auer wrote: > asm/u-boot.h is usually included with common.h. ulong is defined in > linux/types.h (also included in common.h). It should be sufficient to > include common.h in your source files. > > Thanks, > Lukas So shouldn't asm/u-boot.h include common.h? Or is that header implicitly assumed to be included with every source file? Is that documented anywhere? To me, the "default" assumption is that any header should be able to be included anywhere and to pull in all of its own dependencies. --Sean