diff -drupN a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c --- a/lib/decompress_unlzma.c 2017-10-21 18:09:07.000000000 +0300 +++ b/lib/decompress_unlzma.c 2022-06-09 05:02:36.000000000 +0300 @@ -35,7 +35,9 @@ #include #endif /* STATIC */ +#include #include +#include #define MIN(a, b) (((a) < (b)) ? (a) : (b)) @@ -534,7 +536,7 @@ static inline int INIT process_bit1(stru -STATIC inline int INIT unlzma(unsigned char *buf, long in_len, +int unlzma(unsigned char *buf, long in_len, long (*fill)(void*, unsigned long), long (*flush)(void*, unsigned long), unsigned char *output, @@ -666,6 +668,8 @@ exit_0: return ret; } +EXPORT_SYMBOL(unlzma); + #ifdef PREBOOT STATIC int INIT __decompress(unsigned char *buf, long in_len, long (*fill)(void*, unsigned long),