firmware/br-ext-chip-ingenic/board/t40/kernel/patches/00000-lib_decompress_unlzma...

32 lines
927 B
Diff

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 <linux/decompress/unlzma.h>
#endif /* STATIC */
+#include <linux/decompress/unlzma_mm.h>
#include <linux/decompress/mm.h>
+#include <linux/module.h>
#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),