[U-Boot] [PATCH 2/3 V2] common: Implement support for linker-generated arrays

Marek Vasut marex at denx.de
Sat Sep 29 04:49:33 CEST 2012


Dear Joe Hershberger,

[...]


> While ll_entry_count is great and all, it is more natural to compare
> your list pointer to The End (tm) or not.  It would make client code
> capable of being cleaner if you also include ll_entry_end() as well.

Ain't that

#define ll_entry_end(_type, u) \
ll_entry_start(_type, u) + ll_entry_count(_type, u)

...

_type *end = ll_entry_end(_type, u);

?

> Thanks,
> -Joe

Best regards,
Marek Vasut


More information about the U-Boot mailing list