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

14 lines
355 B
Diff

diff -drupN a/lib/decompress_unxz.c b/lib/decompress_unxz.c
--- a/lib/decompress_unxz.c 2017-10-21 18:09:07.000000000 +0300
+++ b/lib/decompress_unxz.c 2022-06-09 05:02:36.000000000 +0300
@@ -102,6 +102,9 @@
*/
#ifdef STATIC
# define XZ_PREBOOT
+# define INIT
+#else
+# define INIT __init
#endif
#ifdef __KERNEL__
# include <linux/decompress/mm.h>