~ubuntu-branches/ubuntu/trusty/linux-lts-vivid/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/decompress_unlzo.c

  • Committer: Package Import Robot
  • Author(s): Luis Henriques, Kamal Mostafa, K. Y. Srinivasan
  • Date: 2015-11-23 13:24:32 UTC
  • Revision ID: package-import@ubuntu.com-20151123132432-903xk653el60bfun
[ Kamal Mostafa ]

* Release Tracking Bug
  - LP: #1518519

[ K. Y. Srinivasan ]

* SAUCE: Drivers: hv: vmbus: Fix a Host signaling bug
  - LP: #1508706

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 */
32
32
 
33
33
#ifdef STATIC
 
34
#define PREBOOT
34
35
#include "lzo/lzo1x_decompress_safe.c"
35
36
#else
36
37
#include <linux/decompress/unlzo.h>
287
288
        return ret;
288
289
}
289
290
 
290
 
#define decompress unlzo
 
291
#ifdef PREBOOT
 
292
STATIC int INIT __decompress(unsigned char *buf, long len,
 
293
                           long (*fill)(void*, unsigned long),
 
294
                           long (*flush)(void*, unsigned long),
 
295
                           unsigned char *out_buf, long olen,
 
296
                           long *pos,
 
297
                           void (*error)(char *x))
 
298
{
 
299
        return unlzo(buf, len, fill, flush, out_buf, pos, error);
 
300
}
 
301
#endif