linux-imx/lib/lz4
Rui Salvaterra 7976774016 lib: lz4: fixed zram with lz4 on big endian machines
commit 3e26a691fe upstream.

Based on Sergey's test patch [1], this fixes zram with lz4 compression
on big endian cpus.

Note that the 64-bit preprocessor test is not a cleanup, it's part of
the fix, since those identifiers are bogus (for example, __ppc64__
isn't defined anywhere else in the kernel, which means we'd fall into
the 32-bit definitions on ppc64).

Tested on ppc64 with no regression on x86_64.

[1] http://marc.info/?l=linux-kernel&m=145994470805853&w=4

Suggested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2016-05-02 19:54:56 +02:00
..
lz4_compress.c lib/lz4: correct the LZ4 license 2013-08-23 09:51:22 -07:00
lz4_decompress.c LZ4 : fix the data abort issue 2015-04-09 13:14:01 +02:00
lz4defs.h lib: lz4: fixed zram with lz4 on big endian machines 2016-05-02 19:54:56 +02:00
lz4hc_compress.c lib/lz4: correct the LZ4 license 2013-08-23 09:51:22 -07:00
Makefile lib: add lz4 compressor module 2013-07-09 10:33:30 -07:00