[PATCH v4 08/15] gzip: Avoid use of u64
trini at konsulko.com
Sat Oct 9 03:38:37 CEST 2021
On Sat, Sep 25, 2021 at 07:03:13AM -0600, Simon Glass wrote:
> The gzip API uses the u64 type in it, which is not available in the host
> build. This makes it impossible to include the header file.
> We could make this type available, but it seems unnecessary. Limiting the
> compression size to that of the 'unsigned long' type seems good enough. On
> 32-bit machines the limit then becomes 4GB, which likely exceeds available
> RAM anyway, therefore it should be sufficient. On 64-bit machines this is
> effectively u64 anyway.
> Update the header file and implementation to use 'ulong' instead of 'u64'.
> Add a definition of u32 for the cases that seem to need exactly that
> length. This should be safe enough.
> Signed-off-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 659 bytes
Desc: not available
More information about the U-Boot