Re: [U-Boot] [PATCH 1/3] Kconfig add config ERR_PTR_OFFSET

2019-11-08 Thread Tom Rini
On Tue, Oct 22, 2019 at 09:29:46PM +0200, Simon Goldschmidt wrote: > Some U-Boot pointers have redundant information, so we can use a scheme > where we can return either an error code or a pointer with the same > return value. The default implementation just casts the pointer to a > number,

[U-Boot] [PATCH 1/3] Kconfig add config ERR_PTR_OFFSET

2019-10-22 Thread Simon Goldschmidt
Some U-Boot pointers have redundant information, so we can use a scheme where we can return either an error code or a pointer with the same return value. The default implementation just casts the pointer to a number, however, this may fail on platforms where the end of the address range is used