]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lz4: Do not disable LZ4_decompress_safe* for xPL
authorTom Rini <trini@konsulko.com>
Wed, 1 Oct 2025 20:31:01 +0000 (14:31 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 10 Oct 2025 20:25:33 +0000 (14:25 -0600)
We should compile the LZ4_decompress_safe and
LZ4_decompress_safe_partial functions in SPL and they will be discarded
if unused.

Signed-off-by: Tom Rini <trini@konsulko.com>
lib/lz4.c

index c718659c590a727f9838fa2e3da1a0d1dddc1242..11b4a4d334bed7c9a1542e6332372f5ebb505619 100644 (file)
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -526,7 +526,6 @@ _output_error:
        return (int) (-(((const char *)ip) - src)) - 1;
 }
 
-#ifndef CONFIG_SPL_BUILD
 __rcode int LZ4_decompress_safe(const char *source, char *dest,
                                int compressedSize, int maxDecompressedSize)
 {
@@ -545,4 +544,3 @@ __rcode int LZ4_decompress_safe_partial(const char *src, char *dst,
                                      endOnInputSize, partial_decode,
                                      noDict, (BYTE *)dst, NULL, 0);
 }
-#endif