diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-10-23 15:25:54 -0700 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-10-23 15:25:54 -0700 |
commit | 0df341edfa5e7c119523a0c30146e88106f88b43 (patch) | |
tree | b8a8bfabaa488d70ce49a7941e974bab023cb2d0 /lib/decompress_unlzo.c | |
parent | 9ac0b253c59216c9614436b2006d0557396eb268 (diff) | |
parent | 205a8514e63a221c3a5071f27521013444e43e5f (diff) |
Merge tag 'v4.1.11' into toradex_vf_4.1-next
This is the 4.1.11 stable release
Diffstat (limited to 'lib/decompress_unlzo.c')
-rw-r--r-- | lib/decompress_unlzo.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c index b94a31bdd87d..f4c158e3a022 100644 --- a/lib/decompress_unlzo.c +++ b/lib/decompress_unlzo.c @@ -31,6 +31,7 @@ */ #ifdef STATIC +#define PREBOOT #include "lzo/lzo1x_decompress_safe.c" #else #include <linux/decompress/unlzo.h> @@ -287,4 +288,14 @@ exit: return ret; } -#define decompress unlzo +#ifdef 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 unlzo(buf, len, fill, flush, out_buf, pos, error); +} +#endif |