author: Yinghai Lu <yinghai@kernel.org> 2015-09-09 15:39:12 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2015-09-10 13:29:01 -0700
commit: 2d3862d26e67a59340ba1cf1748196c76c5787de
parent: e852d82a5b55b44ce8be89078d0dfbddbeae3211
Commit Summary:
Diffstat:
1 file changed, 11 insertions, 1 deletion
diff --git a/lib/decompress_unxz.c b/lib/decompress_unxz.c
index b07a78340e9d..25d59a95bd66 100644
--- a/lib/decompress_unxz.c
+++ b/lib/decompress_unxz.c
@@ -394,4 +394,14 @@ error_alloc_state:
* This macro is used by architecture-specific files to decompress
* the kernel image.
*/
-#define decompress unxz
+#ifdef XZ_PREBOOT
+STATIC int INIT __decompress(unsigned char *buf, long len,
+ long (*fill)(void*, unsigned long),
+ long (*flush)(void*, unsigned long),
+ unsigned char *out_buf, long olen,
+ long *pos,
+ void (*error)(char *x))
+{
+ return unxz(buf, len, fill, flush, out_buf, pos, error);
+}
+#endif