
26 Jan
2020
26 Jan
'20
11:23 p.m.
On Sun, 2020-01-26 at 17:12 -0500, Sean Anderson wrote:
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.
You are right, it is not entirely correct like this. I think common.h is assumed to always be included. Unfortunately, I don't know if this is documented anywhere.
Thanks, Lukas